MCPcopy Create free account
hub / github.com/docopt/docopt.go / newOptionsShortcut

Function newOptionsShortcut

docopt.go:771–775  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

769}
770
771func newOptionsShortcut() *pattern {
772 var p pattern
773 p.t = patternOptionSSHORTCUT
774 return &p
775}
776
777func newLeafPattern(t patternType, name string, value interface{}) *pattern {
778 // default: value=nil

Callers 3

parseAtomFunction · 0.85
TestPatternFlatFunction · 0.85
TestParsePatternFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestPatternFlatFunction · 0.68
TestParsePatternFunction · 0.68