aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Nigmatzianov <[email protected]>2017-04-19 14:26:55 +0200
committerAlbert Nigmatzianov <[email protected]>2017-04-26 21:20:41 +0200
commit1d9fab458082a6f06834b844d331fb039a6821b3 (patch)
treeabdade7002be5225f07123c40d86e2fa86afd30a
parent4995a3e9cc2102264d261ecf6350a612ea05eb87 (diff)
Use f.out in output flag deprecation
-rw-r--r--flag.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/flag.go b/flag.go
index 8a8c89c..a5a0f25 100644
--- a/flag.go
+++ b/flag.go
@@ -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
}