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)
| 84 | // Bool defines a bool flag with specified name, default value, and usage string. |
| 85 | // The return value is the address of a bool variable that stores the value of the flag. |
| 86 | func Bool(name string, value bool, usage string) *bool { |
| 87 | return BoolP(name, "", value, usage) |
| 88 | } |
| 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 { |
searching dependent graphs…