diff --git a/pkg/mflag/flag.go b/pkg/mflag/flag.go index 11dfb75d8c..ce003cd074 100644 --- a/pkg/mflag/flag.go +++ b/pkg/mflag/flag.go @@ -560,7 +560,7 @@ func defaultUsage(f *FlagSet) { // Usage prints to standard error a usage message documenting all defined command-line flags. // The function is a variable that may be changed to point to a custom function. var Usage = func() { - fmt.Fprintf(CommandLine.output, "Usage of %s:\n", os.Args[0]) + fmt.Fprintf(CommandLine.Out(), "Usage of %s:\n", os.Args[0]) PrintDefaults() }