Get package choices from source of truth

This commit is contained in:
Dan Buch 2016-07-11 06:02:15 -04:00
parent c3b03b8437
commit 8d976fe182
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC

View File

@ -78,7 +78,7 @@ def main(sysargs=sys.argv[:]):
formatter_class=_FancyFormatter) formatter_class=_FancyFormatter)
parser.add_argument( parser.add_argument(
'package', 'package',
type=str, default='cli', choices=['cli', 'altsrc'], type=str, default='cli', choices=_WRITEFUNCS.keys(),
help='Package for which flag types will be generated' help='Package for which flag types will be generated'
) )
parser.add_argument( parser.add_argument(