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

Function BoolFuncP

bool_func.go:38–40  ·  view source on GitHub ↗

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

(name, shorthand string, usage string, fn func(string) error)

Source from the content-addressed store, hash-verified

36
37// BoolFuncP is like BoolFunc, but accepts a shorthand letter that can be used after a single dash.
38func BoolFuncP(name, shorthand string, usage string, fn func(string) error) {
39 CommandLine.BoolFuncP(name, shorthand, usage, fn)
40}

Callers

nothing calls this directly

Calls 1

BoolFuncPMethod · 0.80

Tested by

no test coverage detected