Usage puts out the usage for the command. Used when a user provides invalid input. Can be defined by user by overriding UsageFunc.
()
| 476 | // Used when a user provides invalid input. |
| 477 | // Can be defined by user by overriding UsageFunc. |
| 478 | func (c *Command) Usage() error { |
| 479 | return c.UsageFunc()(c) |
| 480 | } |
| 481 | |
| 482 | // HelpFunc returns either the function set by SetHelpFunc for this command |
| 483 | // or a parent, or it returns a function with default help behavior. |
no test coverage detected