Skip to content

Commit

Permalink
Use f.out in output flag deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
n10v committed Apr 26, 2017
1 parent 4995a3e commit 1d9fab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ func (f *FlagSet) Set(name, value string) error {
f.orderedActual = append(f.orderedActual, flag)
flag.Changed = true
if len(flag.Deprecated) > 0 {
fmt.Fprintf(os.Stderr, "Flag --%s has been deprecated, %s\n", flag.Name, flag.Deprecated)
fmt.Fprintf(f.out(), "Flag --%s has been deprecated, %s\n", flag.Name, flag.Deprecated)
}
return nil
}
Expand Down

0 comments on commit 1d9fab4

Please sign in to comment.