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

Function formal_usage

preprocessor/docopt.py:470–473  ·  view source on GitHub ↗
(section)

Source from the content-addressed store, hash-verified

468
469
470def formal_usage(section):
471 _, _, section = section.partition(':') # drop "usage:"
472 pu = section.split()
473 return '( ' + ' '.join(') | (' if s == pu[0] else s for s in pu[1:]) + ' )'
474
475
476def extras(help, version, options, doc):

Callers 1

docoptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected