Refactor k.FatalIfErrorf to use k.Fatalf
This commit is contained in:
@@ -336,8 +336,7 @@ func (k *Kong) FatalIfErrorf(err error, args ...interface{}) {
|
|||||||
_ = k.help(options, err.Context)
|
_ = k.help(options, err.Context)
|
||||||
fmt.Fprintln(k.Stdout)
|
fmt.Fprintln(k.Stdout)
|
||||||
}
|
}
|
||||||
k.Errorf("%s", msg)
|
k.Fatalf("%s", msg)
|
||||||
k.Exit(1)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// LoadConfig from path using the loader configured via Configuration(loader).
|
// LoadConfig from path using the loader configured via Configuration(loader).
|
||||||
|
|||||||
Reference in New Issue
Block a user