Searched refs:prefix_chars (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Lib/ |
D | argparse.py | 1184 prefix_chars, argument 1191 self.prefix_chars = prefix_chars 1272 chars = self.prefix_chars 1406 if not option_string[0] in self.prefix_chars: 1409 tup = option_string, self.prefix_chars 1414 if option_string[0] in self.prefix_chars: 1416 if option_string[1] in self.prefix_chars: 1426 dest = dest_option_string.lstrip(self.prefix_chars) 1490 update('prefix_chars', container.prefix_chars) 1564 prefix_chars='-', argument [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_argparse.py | 436 parser_signature = Sig(prefix_chars='+:/', add_help=False) 458 parser_signature = Sig(prefix_chars='+:/', add_help=True) 478 parser_signature = Sig(prefix_chars='+-', add_help=False) 1217 parser_signature = Sig(prefix_chars='-+') 1751 def _get_parser(self, subparser_help=False, prefix_chars=None): argument 1753 if prefix_chars: 1755 prog='PROG', description='main description', prefix_chars=prefix_chars) 1757 prefix_chars[0] * 2 + 'foo', action='store_true', help='foo help') 1878 parser = self._get_parser(prefix_chars='+:-') 1897 parser = self._get_parser(prefix_chars='+:/') [all …]
|
/external/python/cpython2/Doc/library/ |
D | argparse.rst | 142 prefix_chars='-', fromfile_prefix_chars=None, \ 443 prefix_chars section in ArgumentParser objects 449 like ``+f`` or ``/foo``, may specify them using the ``prefix_chars=`` argument 452 >>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='-+') 458 The ``prefix_chars=`` argument defaults to ``'-'``. Supplying a set of 585 if the ``prefix_chars=`` is specified and does not include ``-``, in 587 this case, the first character in ``prefix_chars`` is used to prefix 590 >>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='+/')
|
/external/python/cpython2/Misc/ |
D | NEWS | 5739 - Issue #9444: Argparse now uses the first element of prefix_chars as 5740 the option character for the added 'h/help' option if prefix_chars
|