diff --git a/ozi/fix/parser.py b/ozi/fix/parser.py index 33433622..ecba10d8 100644 --- a/ozi/fix/parser.py +++ b/ozi/fix/parser.py @@ -9,14 +9,21 @@ from argparse import ArgumentParser from argparse import BooleanOptionalAction -parser = ArgumentParser(description=sys.modules[__name__].__doc__, add_help=False) +parser = ArgumentParser( + prog='ozi-fix', + description=sys.modules[__name__].__doc__, + add_help=False, + usage='%(prog)s [options] | [positional arguments]', +) subparser = parser.add_subparsers(help='source & test fix', dest='fix') helpers = parser.add_mutually_exclusive_group() helpers.add_argument('-h', '--help', action='help', help='show this help message and exit') missing_parser = subparser.add_parser( 'missing', + prog='ozi-fix missing', aliases=['m'], + usage='%(prog)s [options] [output] target', allow_abbrev=True, help='Check for missing files in an OZI project.', ) @@ -58,11 +65,15 @@ source_parser = subparser.add_parser( 'source', aliases=['s'], + prog='ozi-fix source', + usage='%(prog)s [options] [output] target', allow_abbrev=True, help='Create a new Python source in an OZI project.', ) test_parser = subparser.add_parser( 'test', + prog='ozi-fix test', + usage='%(prog)s [options] [output] target', aliases=['t'], allow_abbrev=True, help='Create a new Python test in an OZI project.', diff --git a/ozi/new/parser.py b/ozi/new/parser.py index 05ae7d44..8c228908 100644 --- a/ozi/new/parser.py +++ b/ozi/new/parser.py @@ -16,6 +16,7 @@ prog='ozi-new', description=sys.modules[__name__].__doc__, add_help=False, + usage='%(prog)s [options] [PKG-INFO required] [PKG-INFO optional] [PKG-INFO defaults] [defaults] target', ) subparser = parser.add_subparsers(help='create new projects, sources, & tests', dest='new') project_parser = subparser.add_parser( @@ -30,10 +31,10 @@ description='Create a new OZI wrapdb file.', ) required = project_parser.add_argument_group('PKG-INFO required') -ozi_required = project_parser.add_argument_group('required') -ozi_defaults = project_parser.add_argument_group('defaults') optional = project_parser.add_argument_group('PKG-INFO optional') defaults = project_parser.add_argument_group('PKG-INFO defaults') +ozi_defaults = project_parser.add_argument_group('defaults') +ozi_required = project_parser.add_argument_group('required') ozi_defaults.add_argument( '-c', '--copyright-head',