A few extra fixes and tests.

This commit is contained in:
Alec Thomas
2018-11-21 11:59:53 +11:00
parent aedca401da
commit c8b3fc9840
5 changed files with 81 additions and 33 deletions
-1
View File
@@ -326,7 +326,6 @@ func (k *Kong) FatalIfErrorf(err error, args ...interface{}) {
if err, ok := err.(*ParseError); ok && k.usageOnError {
fmt.Fprintln(k.Stdout)
options := k.helpOptions
options.Summary = true
_ = k.help(options, err.Context)
}
k.Exit(1)