~sircmpwn/getopt

daaf1274538b02b41238d1e6c219186c76af3b8c — Stefan Tatschner 2 years ago e71ab57
Print error when ExitOnError is set
1 files changed, 1 insertions(+), 0 deletions(-)

M flagset.go
M flagset.go => flagset.go +1 -0
@@ 144,6 144,7 @@ func (set *FlagSet) Parse() (err error) {
		case flag.PanicOnError:
			panic(err)
		case flag.ExitOnError:
			fmt.Println(err)
			os.Exit(2)
		}
	}