VarP is like Var, but accepts a shorthand letter that can be used after a single dash.
(value Value, name, shorthand, usage string)
| 864 | |
| 865 | // VarP is like Var, but accepts a shorthand letter that can be used after a single dash. |
| 866 | func (f *FlagSet) VarP(value Value, name, shorthand, usage string) { |
| 867 | f.VarPF(value, name, shorthand, usage) |
| 868 | } |
| 869 | |
| 870 | // AddFlag will add the flag to the FlagSet |
| 871 | func (f *FlagSet) AddFlag(flag *Flag) { |