MCPcopy Index your code
hub / github.com/nodejs/node / PrintUsage

Function PrintUsage

tools/cpplint.py:7761–7780  ·  view source on GitHub ↗

Prints a brief usage string and exits, optionally with an error message. Args: message: The optional error message.

(message)

Source from the content-addressed store, hash-verified

7759
7760
7761def PrintUsage(message):
7762 """Prints a brief usage string and exits, optionally with an error message.
7763
7764 Args:
7765 message: The optional error message.
7766 """
7767 sys.stderr.write(
7768 _USAGE
7769 % (
7770 sorted(GetAllExtensions()),
7771 ",".join(sorted(GetAllExtensions())),
7772 sorted(GetHeaderExtensions()),
7773 ",".join(sorted(GetHeaderExtensions())),
7774 )
7775 )
7776
7777 if message:
7778 sys.exit("\nFATAL ERROR: " + message)
7779 else:
7780 sys.exit(0)
7781
7782
7783def PrintVersion():

Callers 5

ProcessHppHeadersOptionFunction · 0.70
ProcessExtensionsOptionFunction · 0.70
ParseArgumentsFunction · 0.70

Calls 6

sortedFunction · 0.85
GetAllExtensionsFunction · 0.85
GetHeaderExtensionsFunction · 0.85
writeMethod · 0.45
joinMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…