Made --help options sorted
This commit is contained in:
parent
477cacf155
commit
2fe4c60ae3
|
@ -139,7 +139,7 @@ def add_arguments(parser):
|
|||
parser.add_argument("-n", "--name", help="project name. default: name of current directory")
|
||||
parser.add_argument("-e", "--executable", help="executable name. default: project name")
|
||||
parser.add_argument("-d", "--deps", help="dependencies, comma-separated")
|
||||
parser.add_argument("-l", "--language", choices=LANG_SUPPORTED, help="project language. default: autodetected based on source files")
|
||||
parser.add_argument("-l", "--language", choices=sorted(LANG_SUPPORTED), help="project language. default: autodetected based on source files")
|
||||
parser.add_argument("-b", "--build", action='store_true', help="build after generation")
|
||||
parser.add_argument("--builddir", default='build', help="directory for build")
|
||||
parser.add_argument("-f", "--force", action="store_true", help="force overwrite of existing files and directories.")
|
||||
|
|
|
@ -80,7 +80,7 @@ def add_arguments(parser):
|
|||
flag = '--' + key.replace('_', '-')
|
||||
parser.add_argument(flag, action='store_true', dest=key, default=False, help=val.desc)
|
||||
|
||||
parser.add_argument('--backend', choices=cdata.backendlist, dest='backend', default='ninja',
|
||||
parser.add_argument('--backend', choices=sorted(cdata.backendlist), dest='backend', default='ninja',
|
||||
help='The backend to use for the --buildoptions introspection.')
|
||||
parser.add_argument('-a', '--all', action='store_true', dest='all', default=False,
|
||||
help='Print all available information.')
|
||||
|
|
Loading…
Reference in New Issue