Lines Matching refs:subparsers
1537 >>> subparsers = parser.add_subparsers(help='sub-command help')
1540 >>> parser_a = subparsers.add_parser('a', help='a help')
1544 >>> parser_b = subparsers.add_parser('b', help='b help')
1555 command line (and not any other subparsers). So in the example above, when
1601 >>> subparsers = parser.add_subparsers(title='subcommands',
1604 >>> subparsers.add_parser('foo')
1605 >>> subparsers.add_parser('bar')
1632 >>> subparsers = parser.add_subparsers()
1635 >>> parser_foo = subparsers.add_parser('foo')
1641 >>> parser_bar = subparsers.add_parser('bar')
1658 different actions for each of your subparsers. However, if it is necessary
1663 >>> subparsers = parser.add_subparsers(dest='subparser_name')
1664 >>> subparser1 = subparsers.add_parser('1')
1666 >>> subparser2 = subparsers.add_parser('2')