MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / get_usage

Method get_usage

tools/python-3.11.9-amd64/Lib/optparse.py:1571–1576  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1569 self.exit(2, "%s: error: %s\n" % (self.get_prog_name(), msg))
1570
1571 def get_usage(self):
1572 if self.usage:
1573 return self.formatter.format_usage(
1574 self.expand_prog_name(self.usage))
1575 else:
1576 return ""
1577
1578 def print_usage(self, file=None):
1579 """print_usage(file : file = stdout)

Callers 2

print_usageMethod · 0.95
format_helpMethod · 0.95

Calls 2

expand_prog_nameMethod · 0.95
format_usageMethod · 0.45

Tested by

no test coverage detected