MCPcopy Index your code
hub / github.com/cpplint/cpplint / PrintUsage

Function PrintUsage

cpplint.py:7613–7632  ·  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

7611
7612
7613def PrintUsage(message):
7614 """Prints a brief usage string and exits, optionally with an error message.
7615
7616 Args:
7617 message: The optional error message.
7618 """
7619 sys.stderr.write(
7620 _USAGE
7621 % (
7622 sorted(GetAllExtensions()),
7623 ",".join(sorted(GetAllExtensions())),
7624 sorted(GetHeaderExtensions()),
7625 ",".join(sorted(GetHeaderExtensions())),
7626 )
7627 )
7628
7629 if message:
7630 sys.exit("\nFATAL ERROR: " + message)
7631 else:
7632 sys.exit(0)
7633
7634
7635def PrintVersion():

Callers 4

ProcessHppHeadersOptionFunction · 0.85
ProcessExtensionsOptionFunction · 0.85
ParseArgumentsFunction · 0.85

Calls 2

GetAllExtensionsFunction · 0.85
GetHeaderExtensionsFunction · 0.85

Tested by

no test coverage detected