MCPcopy
hub / github.com/docopt/docopt / extras

Function extras

docopt.py:479–485  ·  view source on GitHub ↗
(help, version, options, doc)

Source from the content-addressed store, hash-verified

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

Callers 1

docoptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…