BoolVarP is like BoolVar, but accepts a shorthand letter that can be used after a single dash.
(p *bool, name, shorthand string, value bool, usage string)
| 64 | |
| 65 | // BoolVarP is like BoolVar, but accepts a shorthand letter that can be used after a single dash. |
| 66 | func BoolVarP(p *bool, name, shorthand string, value bool, usage string) { |
| 67 | flag := CommandLine.VarPF(newBoolValue(value, p), name, shorthand, usage) |
| 68 | flag.NoOptDefVal = "true" |
| 69 | } |
| 70 | |
| 71 | // Bool defines a bool flag with specified name, default value, and usage string. |
| 72 | // The return value is the address of a bool variable that stores the value of the flag. |
no test coverage detected