MCPcopy Create free account
hub / github.com/ActiveState/code / talkback

Function talkback

recipes/Python/576729_Simple_Version_Control/recipe-576729.py:122–126  ·  view source on GitHub ↗
(msg, help=False, code=1)

Source from the content-addressed store, hash-verified

120 ''' % repo_dir
121
122def talkback(msg, help=False, code=1):
123 print >> sys.stderr, msg
124 if help:
125 print >> sys.stderr, '\n' + help_msg
126 sys.exit(code)
127
128def main(argv):
129 # XXX add support for branching

Callers 1

mainFunction · 0.85

Calls 1

exitMethod · 0.45

Tested by

no test coverage detected