diff --git a/mflag/flag.go b/mflag/flag.go index 6a113b9..43fd305 100644 --- a/mflag/flag.go +++ b/mflag/flag.go @@ -1102,7 +1102,7 @@ func (fs *FlagSet) Parse(arguments []string) error { case ContinueOnError: return err case ExitOnError: - os.Exit(2) + os.Exit(125) case PanicOnError: panic(err) }