MCPcopy Create free account
hub / github.com/alibaba/GraphScope / PrintUsage

Function PrintUsage

analytical_engine/misc/cpplint.py:6687–6701  ·  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

6685
6686
6687def PrintUsage(message):
6688 """Prints a brief usage string and exits, optionally with an error message.
6689
6690 Args:
6691 message: The optional error message.
6692 """
6693 sys.stderr.write(_USAGE % (list(GetAllExtensions()),
6694 ','.join(list(GetAllExtensions())),
6695 GetHeaderExtensions(),
6696 ','.join(GetHeaderExtensions())))
6697
6698 if message:
6699 sys.exit('\nFATAL ERROR: ' + message)
6700 else:
6701 sys.exit(0)
6702
6703def PrintVersion():
6704 sys.stdout.write('Cpplint fork (https://github.com/cpplint/cpplint)\n')

Callers 4

ProcessHppHeadersOptionFunction · 0.85
ProcessExtensionsOptionFunction · 0.85
ParseArgumentsFunction · 0.85

Calls 4

GetAllExtensionsFunction · 0.85
GetHeaderExtensionsFunction · 0.85
writeMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected