Count returns the num of occurrences of this flag
(name string)
| 601 | |
| 602 | // Count returns the num of occurrences of this flag |
| 603 | func (cmd *Command) Count(name string) int { |
| 604 | if cf, ok := cmd.lookupFlag(name).(Countable); ok { |
| 605 | return cf.Count() |
| 606 | } |
| 607 | return 0 |
| 608 | } |
| 609 | |
| 610 | // Value returns the value of the flag corresponding to `name` |
| 611 | func (cmd *Command) Value(name string) any { |