require a subcommand

This commit is contained in:
xenofem 2024-01-22 22:09:26 -05:00
parent 5b2f99516f
commit a290c2c4e7

View file

@ -358,7 +358,7 @@ argparser.add_argument(
default=Path('./dlibrary'), default=Path('./dlibrary'),
help='directory to store dlibrary content and metadata to (default: ./dlibrary)', help='directory to store dlibrary content and metadata to (default: ./dlibrary)',
) )
subparsers = argparser.add_subparsers(title="subcommands") subparsers = argparser.add_subparsers(title="subcommands", required=True)
parser_extract = subparsers.add_parser('extract', help='extract zipfiles') parser_extract = subparsers.add_parser('extract', help='extract zipfiles')
parser_extract.add_argument( parser_extract.add_argument(