X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/0604bdd5f693da9f1c78f9d9fa2276f0c7b6c17b..1e1abb45277301597bcbb54d17675330bedd7fc5:/src/librarian/command_line.py?ds=inline diff --git a/src/librarian/command_line.py b/src/librarian/command_line.py index 91196f1..3c17daf 100644 --- a/src/librarian/command_line.py +++ b/src/librarian/command_line.py @@ -9,7 +9,7 @@ def main(*args, **kwargs): parser.add_argument( 'builder', - choices=[b.identifier for b in builders], + choices=builders.keys(), help="Builder" ) parser.add_argument('input_file') @@ -23,6 +23,7 @@ def main(*args, **kwargs): ) args = parser.parse_args() + builder = builders[args.builder] if args.output_file: output_file_path = args.output_file