Searched refs:add_subparsers (Results 1 – 20 of 20) sorted by relevance
24 sub = parser.add_subparsers(title="Commands")
10 subparsers = parser.add_subparsers(metavar='<command>', title='commands')
54 subparsers = parser.add_subparsers(help='sub-command help')
32 subcommands = argparser.add_subparsers(title="Benchmarks", dest="subcommand")
55 subs = parser.add_subparsers(help='Commands:')
1939 subparsers = parser.add_subparsers(**subparsers_kwargs)1940 self.assertArgumentParserError(parser.add_subparsers)2027 subparsers = parser.add_subparsers(dest='bar')2043 subparsers = parser.add_subparsers(dest='command')2050 subparsers = parser.add_subparsers(dest='command', required=True)2056 subparsers = parser.add_subparsers(dest='command')2064 subparsers = parser.add_subparsers(required=True)2076 subparsers = parser.add_subparsers(required=True)2088 subparsers = parser.add_subparsers(dest='command', required=False)2228 subparsers = parser.add_subparsers(title='subcommands',[all …]
85 subparsers = argparser.add_subparsers(help="target language for the generated code")
197 commands = parser.add_subparsers(help='commands to run', dest='cmd')
212 subparsers = parser.add_subparsers(help='sub-command help')
231 sub = parser.add_subparsers()
1616 .. method:: ArgumentParser.add_subparsers([title], [description], [prog], \1627 :meth:`add_subparsers` method. The :meth:`add_subparsers` method is normally1668 >>> subparsers = parser.add_subparsers(help='sub-command help')1727 The :meth:`add_subparsers` method also supports ``title`` and ``description``1732 >>> subparsers = parser.add_subparsers(title='subcommands',1753 >>> subparsers = parser.add_subparsers()1760 of the :meth:`add_subparsers` method with calls to :meth:`set_defaults` so1773 >>> subparsers = parser.add_subparsers()1801 argument to the :meth:`add_subparsers` call will work::1804 >>> subparsers = parser.add_subparsers(dest='subparser_name')[all …]
445 subparsers = parser.add_subparsers(dest='command',
413 subs = parser.add_subparsers(dest='datacmd')
82 subparsers = parser.add_subparsers(
441 subs = parser.add_subparsers(dest='cmd')
477 ``add_subparsers(required=False)``. Patch by Anthony Sottile.
1773 def add_subparsers(self, **kwargs): member in ArgumentParser
2411 to :meth:`ArgumentParser.add_subparsers() <argparse.ArgumentParser.add_subparsers>`.
154 subparsers = parser.add_subparsers()
2641 subparsers = parser.add_subparsers(dest='command',