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

Method get_usage

Lib/optparse.py:1561–1566  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1559 self.exit(2, "%s: error: %s\n" % (self.get_prog_name(), msg))
1560
1561 def get_usage(self):
1562 if self.usage:
1563 return self.formatter.format_usage(
1564 self.expand_prog_name(self.usage))
1565 else:
1566 return ""
1567
1568 def print_usage(self, file=None):
1569 """print_usage(file : file = stdout)

Callers 3

print_usageMethod · 0.95
format_helpMethod · 0.95
assertUsageMethod · 0.80

Calls 2

expand_prog_nameMethod · 0.95
format_usageMethod · 0.45

Tested by 1

assertUsageMethod · 0.64