Home
last modified time | relevance | path

Searched refs:format_usage (Results 1 – 12 of 12) sorted by relevance

/external/llvm-project/debuginfo-tests/dexter/dex/utils/
DExtArgParse.py45 raise Error('{}\n\n{}'.format(message, self.format_usage()))
59 def format_usage(self): member in ExtArgumentParser
60 return _colorize(super(ExtArgumentParser, self).format_usage())
/external/llvm-project/debuginfo-tests/dexter/dex/tools/
DToolBase.py110 pparser.usage = self.parser.format_usage().lstrip('usage: ')
/external/python/cpython2/Lib/
Doptparse.py249 def format_usage(self, usage): member in HelpFormatter
374 def format_usage(self, usage): member in IndentedHelpFormatter
393 def format_usage(self, usage): member in TitledHelpFormatter
1588 return self.formatter.format_usage(
Dargparse.py2291 def format_usage(self): member in ArgumentParser
2339 self._print_message(self.format_usage(), file)
/external/python/cpython3/Lib/
Doptparse.py255 def format_usage(self, usage): member in HelpFormatter
380 def format_usage(self, usage): member in IndentedHelpFormatter
399 def format_usage(self, usage): member in TitledHelpFormatter
1573 return self.formatter.format_usage(
Dargparse.py458 part = action.format_usage()
850 def format_usage(self): member in Action
893 def format_usage(self): member in BooleanOptionalAction
2365 self.usage = self.format_usage()[7:]
2505 def format_usage(self): member in ArgumentParser
2543 self._print_message(self.format_usage(), file)
/external/python/cpython2/Lib/test/
Dtest_argparse.py1860 self.assertEqual(self.parser.format_usage(),
1879 self.assertEqual(parser.format_usage(),
1898 self.assertEqual(parser.format_usage(),
1915 self.assertEqual(self.command_help_parser.format_usage(),
1945 self.assertEqual(parser.format_usage(),
2291 format_usage = self.get_parser(required=False).format_usage
2293 self.assertEqual(format_usage(), textwrap.dedent(expected_usage))
2296 format_usage = self.get_parser(required=True).format_usage
2298 self.assertEqual(format_usage(), textwrap.dedent(expected_usage))
/external/python/cpython3/Lib/test/
Dtest_argparse.py2069 self.assertEqual(self.parser.format_usage(),
2088 self.assertEqual(parser.format_usage(),
2124 self.assertEqual(parser.format_usage(),
2141 self.assertEqual(self.command_help_parser.format_usage(),
2171 self.assertEqual(parser.format_usage(),
2551 format_usage = self.get_parser(required=False).format_usage
2553 self.assertEqual(format_usage(), textwrap.dedent(expected_usage))
2556 format_usage = self.get_parser(required=True).format_usage
2558 self.assertEqual(format_usage(), textwrap.dedent(expected_usage))
/external/llvm-project/polly/utils/
Dargparse.py2266 def format_usage(self): member in ArgumentParser
2314 self._print_message(self.format_usage(), file)
/external/python/cpython3/Doc/library/
Dargparse.rst858 ``format_usage`` methods.
1376 Action subclasses can define a ``format_usage`` method that takes no argument
1984 .. method:: ArgumentParser.format_usage()
/external/python/cpython2/Doc/library/
Dargparse.rst1850 .. method:: ArgumentParser.format_usage()
/external/python/cpython3/Misc/NEWS.d/
D3.9.0a1.rst2437 Fixed :meth:`argparse.ArgumentParser.format_usage` for mutually exclusive