MCPcopy Create free account
hub / github.com/apache/mesos / PrintUsage

Function PrintUsage

support/cpplint.py:6123–6133  ·  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

6121
6122
6123def PrintUsage(message):
6124 """Prints a brief usage string and exits, optionally with an error message.
6125
6126 Args:
6127 message: The optional error message.
6128 """
6129 sys.stderr.write(_USAGE)
6130 if message:
6131 sys.exit('\nFATAL ERROR: ' + message)
6132 else:
6133 sys.exit(1)
6134
6135
6136def PrintCategories():

Callers 2

ProcessHppHeadersOptionFunction · 0.85
ParseArgumentsFunction · 0.85

Calls 2

exitMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected