Home
last modified time | relevance | path

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

/third_party/python/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.py461 part = action.format_usage()
856 def format_usage(self): member in Action
899 def format_usage(self): member in BooleanOptionalAction
2372 self.usage = self.format_usage()[7:]
2512 def format_usage(self): member in ArgumentParser
2550 self._print_message(self.format_usage(), file)
/third_party/python/Lib/test/
Dtest_argparse.py2095 self.assertEqual(self.parser.format_usage(),
2114 self.assertEqual(parser.format_usage(),
2186 self.assertEqual(parser.format_usage(),
2203 self.assertEqual(self.command_help_parser.format_usage(),
2233 self.assertEqual(parser.format_usage(),
2620 format_usage = self.get_parser(required=False).format_usage
2622 self.assertEqual(format_usage(), textwrap.dedent(expected_usage))
2625 format_usage = self.get_parser(required=True).format_usage
2627 self.assertEqual(format_usage(), textwrap.dedent(expected_usage))
/third_party/python/Doc/library/
Dargparse.rst861 ``format_usage`` methods.
1391 Action subclasses can define a ``format_usage`` method that takes no argument
1999 .. method:: ArgumentParser.format_usage()
/third_party/python/Misc/NEWS.d/
D3.9.0a1.rst2437 Fixed :meth:`argparse.ArgumentParser.format_usage` for mutually exclusive