BoolP is like Bool, but accepts a shorthand letter that can be used after a single dash.
(name, shorthand string, value bool, usage string)
| 89 | |
| 90 | // BoolP is like Bool, but accepts a shorthand letter that can be used after a single dash. |
| 91 | func BoolP(name, shorthand string, value bool, usage string) *bool { |
| 92 | b := CommandLine.BoolP(name, shorthand, value, usage) |
| 93 | return b |
| 94 | } |