MCPcopy Index your code
hub / github.com/python/cpython / print_help

Method print_help

Lib/optparse.py:1629–1637  ·  view source on GitHub ↗

print_help(file : file = stdout) Print an extended help message, listing all options and any help text provided with them, to 'file' (default stdout).

(self, file=None)

Source from the content-addressed store, hash-verified

1627 return "".join(result)
1628
1629 def print_help(self, file=None):
1630 """print_help(file : file = stdout)
1631
1632 Print an extended help message, listing all options and any
1633 help text provided with them, to 'file' (default stdout).
1634 """
1635 if file is None:
1636 file = sys.stdout
1637 file.write(self.format_help())
1638
1639# class OptionParser
1640

Callers 2

take_actionMethod · 0.45
_print_helpMethod · 0.45

Calls 2

format_helpMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected