MCPcopy
hub / github.com/docopt/docopt / formal_usage

Function formal_usage

docopt.py:474–476  ·  view source on GitHub ↗
(printable_usage)

Source from the content-addressed store, hash-verified

472
473
474def formal_usage(printable_usage):
475 pu = printable_usage.split()[1:] # split and drop "usage:"
476 return '( ' + ' '.join(') | (' if s == pu[0] else s for s in pu[1:]) + ' )'
477
478
479def extras(help, version, options, doc):

Callers 2

docoptFunction · 0.85

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…