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

Function DurationP

duration.go:84–86  ·  view source on GitHub ↗

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

(name, shorthand string, value time.Duration, usage string)

Source from the content-addressed store, hash-verified

82
83// DurationP is like Duration, but accepts a shorthand letter that can be used after a single dash.
84func DurationP(name, shorthand string, value time.Duration, usage string) *time.Duration {
85 return CommandLine.DurationP(name, shorthand, value, usage)
86}

Callers

nothing calls this directly

Calls 1

DurationPMethod · 0.80

Tested by

no test coverage detected