Bool defines a bool flag with specified name, default value, and usage string. The return value is the address of a bool variable that stores the value of the flag.
(name string, value bool, usage string)
| 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. |
| 73 | func (f *FlagSet) Bool(name string, value bool, usage string) *bool { |
| 74 | return f.BoolP(name, "", value, usage) |
| 75 | } |
| 76 | |
| 77 | // BoolP is like Bool, but accepts a shorthand letter that can be used after a single dash. |
| 78 | func (f *FlagSet) BoolP(name, shorthand string, value bool, usage string) *bool { |