Format file.
This commit is contained in:
+2
-2
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user