Searched refs:prefix_chars (Results 1 – 4 of 4) sorted by relevance
/third_party/python/Lib/ |
D | argparse.py | 1311 prefix_chars, argument 1318 self.prefix_chars = prefix_chars 1400 chars = self.prefix_chars 1538 if not option_string[0] in self.prefix_chars: 1540 'prefix_chars': self.prefix_chars} 1547 if len(option_string) > 1 and option_string[1] in self.prefix_chars: 1557 dest = dest_option_string.lstrip(self.prefix_chars) 1623 update('prefix_chars', container.prefix_chars) 1700 prefix_chars='-', argument 1710 prefix_chars=prefix_chars, [all …]
|
/third_party/python/Lib/test/ |
D | test_argparse.py | 422 parser_signature = Sig(prefix_chars='+:/', add_help=False) 444 parser_signature = Sig(prefix_chars='+:/', add_help=True) 464 parser_signature = Sig(prefix_chars='+-', add_help=False) 825 parser_signature = Sig(prefix_chars='+', allow_abbrev=False) 861 parser_signature = Sig(prefix_chars='+', allow_abbrev=False) 1324 parser_signature = Sig(prefix_chars='-+') 1916 def _get_parser(self, subparser_help=False, prefix_chars=None, argument 1919 if prefix_chars: 1921 prog='PROG', description='main description', prefix_chars=prefix_chars) 1923 prefix_chars[0] * 2 + 'foo', action='store_true', help='foo help') [all …]
|
/third_party/python/Doc/library/ |
D | argparse.rst | 143 prefix_chars='-', fromfile_prefix_chars=None, \ 482 prefix_chars section in ArgumentParser objects 488 like ``+f`` or ``/foo``, may specify them using the ``prefix_chars=`` argument 491 >>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='-+') 497 The ``prefix_chars=`` argument defaults to ``'-'``. Supplying a set of 644 if the ``prefix_chars=`` is specified and does not include ``-``, in 646 this case, the first character in ``prefix_chars`` is used to prefix 649 >>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='+/')
|
/third_party/python/Misc/ |
D | HISTORY | 12568 - Issue #9444: Argparse now uses the first element of prefix_chars as the option 12569 character for the added 'h/help' option if prefix_chars does not contain a
|