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

Function PrintDefaults

flag.go:785–787  ·  view source on GitHub ↗

PrintDefaults prints to standard error the default values of all defined command-line flags.

()

Source from the content-addressed store, hash-verified

783
784// PrintDefaults prints to standard error the default values of all defined command-line flags.
785func PrintDefaults() {
786 CommandLine.PrintDefaults()
787}
788
789// defaultUsage is the default function to print a usage message.
790func defaultUsage(f *FlagSet) {

Callers 1

flag.goFile · 0.85

Calls 1

PrintDefaultsMethod · 0.80

Tested by

no test coverage detected