aboutsummaryrefslogtreecommitdiff
path: root/flag.go
diff options
context:
space:
mode:
Diffstat (limited to 'flag.go')
-rw-r--r--flag.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/flag.go b/flag.go
index 47c7960..0d07c36 100644
--- a/flag.go
+++ b/flag.go
@@ -1176,6 +1176,7 @@ func (f *FlagSet) ParseAll(arguments []string, fn func(flag *Flag, value string)
case ContinueOnError:
return err
case ExitOnError:
+ fmt.Fprintln(f.Output(), err)
os.Exit(2)
case PanicOnError:
panic(err)