MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / extras

Function extras

preprocessor/docopt.py:476–482  ·  view source on GitHub ↗
(help, version, options, doc)

Source from the content-addressed store, hash-verified

474
475
476def extras(help, version, options, doc):
477 if help and any((o.name in ('-h', '--help')) and o.value for o in options):
478 print(doc.strip("\n"))
479 sys.exit()
480 if version and any(o.name == '--version' and o.value for o in options):
481 print(version)
482 sys.exit()
483
484
485class Dict(dict):

Callers 1

docoptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected