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

Function Set

flag.go:546–548  ·  flag.go::Set

Set sets the value of the named command-line flag.

(name, value string)

Source from the content-addressed store, hash-verified

544
545// Set sets the value of the named command-line flag.
546func Set(name, value string) error {
547 return CommandLine.Set(name, value)
548}
549
550// PrintDefaults prints, to standard error unless configured
551// otherwise, the default values of all defined flags in the set.

Callers 1

TestEverythingFunction · 0.85

Calls 1

SetMethod · 0.65

Tested by 1

TestEverythingFunction · 0.68