CountP is like Count only takes a shorthand for the flag name.
(name, shorthand string, usage string)
| 78 | |
| 79 | // CountP is like Count only takes a shorthand for the flag name. |
| 80 | func (f *FlagSet) CountP(name, shorthand string, usage string) *int { |
| 81 | p := new(int) |
| 82 | f.CountVarP(p, name, shorthand, usage) |
| 83 | return p |
| 84 | } |
| 85 | |
| 86 | // Count defines a count flag with specified name, default value, and usage string. |
| 87 | // The return value is the address of an int variable that stores the value of the flag. |