Lines Matching refs:subparsers
1528 >>> subparsers = parser.add_subparsers(help='sub-command help')
1531 >>> parser_a = subparsers.add_parser('a', help='a help')
1535 >>> parser_b = subparsers.add_parser('b', help='b help')
1546 command line (and not any other subparsers). So in the example above, when
1592 >>> subparsers = parser.add_subparsers(title='subcommands',
1595 >>> subparsers.add_parser('foo')
1596 >>> subparsers.add_parser('bar')
1623 >>> subparsers = parser.add_subparsers()
1626 >>> parser_foo = subparsers.add_parser('foo')
1632 >>> parser_bar = subparsers.add_parser('bar')
1649 different actions for each of your subparsers. However, if it is necessary
1654 >>> subparsers = parser.add_subparsers(dest='subparser_name')
1655 >>> subparser1 = subparsers.add_parser('1')
1657 >>> subparser2 = subparsers.add_parser('2')