MCPcopy
hub / github.com/spf13/pflag / BoolP

Function BoolP

bool.go:91–94  ·  view source on GitHub ↗

BoolP is like Bool, but accepts a shorthand letter that can be used after a single dash.

(name, shorthand string, value bool, usage string)

Source from the content-addressed store, hash-verified

89
90// BoolP is like Bool, but accepts a shorthand letter that can be used after a single dash.
91func BoolP(name, shorthand string, value bool, usage string) *bool {
92 b := CommandLine.BoolP(name, shorthand, value, usage)
93 return b
94}

Callers 3

ExampleShorthandLookupFunction · 0.92
BoolFunction · 0.85
TestBoolPFunction · 0.85

Calls 1

BoolPMethod · 0.80

Tested by 2

ExampleShorthandLookupFunction · 0.74
TestBoolPFunction · 0.68