Skip to content

Commit

Permalink
docs: better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bh90210 authored and leaanthony committed Oct 11, 2021
1 parent 318783e commit 07a7294
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ func (c *Cli) SetBannerFunction(fn func(*Cli) string) {
}

// SetErrorFunction - Set custom error message when undefined
// flags are used by the user.
// flags are used by the user. First argument is a string containing
// the commnad path used. Second argument is the undefined flag error.
func (c *Cli) SetErrorFunction(fn func(string, error) error) {
c.errorHandler = fn
}
Expand Down

0 comments on commit 07a7294

Please sign in to comment.