mirror of https://github.com/chriskiehl/Gooey.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
376 B
20 lines
376 B
from gooey import GooeyParser, Gooey
|
|
|
|
|
|
|
|
def main():
|
|
parser = GooeyParser()
|
|
subs = parser.add_subparsers()
|
|
foo = subs.add_parser('foo')
|
|
foo.add_argument('a')
|
|
foo.add_argument('b')
|
|
foo.add_argument('p')
|
|
|
|
bar = subs.add_parser('bar')
|
|
bar.add_argument('a')
|
|
bar.add_argument('b')
|
|
bar.add_argument('z')
|
|
parser.parse_args(['foo'])
|
|
|
|
|
|
main()
|