MCPcopy Create free account
hub / github.com/tensorflow/tfjs / PrintUsage

Function PrintUsage

tfjs-backend-wasm/tools/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 1

writeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…