CountVarP is like CountVar only take a shorthand for the flag name.
(p *int, name, shorthand string, usage string)
| 53 | |
| 54 | // CountVarP is like CountVar only take a shorthand for the flag name. |
| 55 | func (f *FlagSet) CountVarP(p *int, name, shorthand string, usage string) { |
| 56 | flag := f.VarPF(newCountValue(0, p), name, shorthand, usage) |
| 57 | flag.NoOptDefVal = "+1" |
| 58 | } |
| 59 | |
| 60 | // CountVar like CountVar only the flag is placed on the CommandLine instead of a given flag set |
| 61 | func CountVar(p *int, name string, usage string) { |