diff --git a/src/flag/flag.go b/src/flag/flag.go index 2eef9d6ab9..c312c62a58 100644 --- a/src/flag/flag.go +++ b/src/flag/flag.go @@ -548,6 +548,8 @@ func (f *FlagSet) PrintDefaults() { // the output will be // -I directory // search directory for include files. +// +// To change the destination for flag messages, call CommandLine.SetOutput. func PrintDefaults() { CommandLine.PrintDefaults() }