MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / PrintUsage

Function PrintUsage

src/tests/coding/cpplint.py:6684–6698  ·  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

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

Callers 4

ProcessHppHeadersOptionFunction · 0.85
ProcessExtensionsOptionFunction · 0.85
ParseArgumentsFunction · 0.85

Calls 3

GetAllExtensionsFunction · 0.85
GetHeaderExtensionsFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected