mirror of
https://github.com/spf13/cobra
synced 2025-05-07 13:57:21 +00:00
clarify comment
This commit is contained in:
parent
5fe64e3661
commit
2643603c96
1 changed files with 1 additions and 1 deletions
|
@ -443,7 +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 default implementation.
|
||||
func (c *Command) UnknownCommandErrorFunc() (f func(*Command, string) error) {
|
||||
if c.unknownCommandErrorFunc != nil {
|
||||
return c.unknownCommandErrorFunc
|
||||
|
|
Loading…
Add table
Reference in a new issue