(ctx context.Context, name string)
| 455 | } |
| 456 | |
| 457 | func (cmd *Command) onInvalidFlag(ctx context.Context, name string) { |
| 458 | for cmd != nil { |
| 459 | if cmd.InvalidFlagAccessHandler != nil { |
| 460 | cmd.InvalidFlagAccessHandler(ctx, cmd, name) |
| 461 | break |
| 462 | } |
| 463 | cmd = cmd.parent |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | // NumFlags returns the number of flags set |
| 468 | func (cmd *Command) NumFlags() int { |
no outgoing calls
no test coverage detected