Format file.

This commit is contained in:
Alec Thomas
2020-05-05 12:13:58 +10:00
parent c69b9a1e88
commit c690640e71
+2 -2
View File
@@ -65,8 +65,8 @@ func NoDefaultHelp() Option {
// parsing occurs.
//
// This is useful for, e.g., adding short options to flags, updating help, etc.
func (k *Kong) PostBuild(fn func(*Kong)error) Option {
return OptionFunc(func (k *Kong) error {
func (k *Kong) PostBuild(fn func(*Kong) error) Option {
return OptionFunc(func(k *Kong) error {
k.postBuildOptions = append(k.postBuildOptions, OptionFunc(fn))
return nil
})