tidy comments

This commit is contained in:
John Brunton 2020-06-25 14:51:28 +01:00
parent c4cbf54b03
commit 5fe64e3661

View file

@ -266,8 +266,7 @@ func (c *Command) SetFlagErrorFunc(f func(*Command, error) error) {
c.flagErrorFunc = f
}
// SetUnknownCommandErrorFunc sets a function to generate an error when flag parsing
// fails.
// SetUnknownCommandErrorFunc sets a function to generate an error when flag parsing fails.
func (c *Command) SetUnknownCommandErrorFunc(f func(*Command, string) error) {
c.unknownCommandErrorFunc = f
}
@ -444,8 +443,7 @@ func (c *Command) FlagErrorFunc() (f func(*Command, error) error) {
}
// UnknownCommandErrorFunc returns either the function set by SetUnknownCommandErrorFunc for this
// command or a parent, or it returns a function which returns the original
// error.
// command or a parent, or it returns a function which returns the original error.
func (c *Command) UnknownCommandErrorFunc() (f func(*Command, string) error) {
if c.unknownCommandErrorFunc != nil {
return c.unknownCommandErrorFunc