MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / custom_help

Function custom_help

utils/iwyu_tool.py:440–445  ·  view source on GitHub ↗

Customized help string, calls the adjusted format_usage.

()

Source from the content-addressed store, hash-verified

438 original_format_help = parser.format_help
439
440 def custom_help():
441 """ Customized help string, calls the adjusted format_usage. """
442 helpmsg = original_format_help()
443 helplines = helpmsg.splitlines()
444 helplines[0] = parser.format_usage().rstrip()
445 return os.linesep.join(helplines) + os.linesep
446
447 parser.format_help = custom_help
448

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected