Update to ErrWriter and make available on app

This commit is contained in:
Matt Farina
2016-05-06 12:14:26 -04:00
parent 2a256d4c53
commit 6f0b442222
4 changed files with 21 additions and 8 deletions

View File

@@ -220,7 +220,7 @@ func (f IntSliceFlag) Apply(set *flag.FlagSet) {
s = strings.TrimSpace(s)
err := newVal.Set(s)
if err != nil {
fmt.Fprintf(OutWriter, err.Error())
fmt.Fprintf(ErrWriter, err.Error())
}
}
f.Value = newVal