MCPcopy Create free account
hub / github.com/BVLC/caffe / PrintUsage

Function PrintUsage

scripts/cpp_lint.py:4761–4771  ·  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

4759
4760
4761def PrintUsage(message):
4762 """Prints a brief usage string and exits, optionally with an error message.
4763
4764 Args:
4765 message: The optional error message.
4766 """
4767 sys.stderr.write(_USAGE)
4768 if message:
4769 sys.exit('\nFATAL ERROR: ' + message)
4770 else:
4771 sys.exit(1)
4772
4773
4774def PrintCategories():

Callers 1

ParseArgumentsFunction · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected