Bool returns the boolean representation of the flag given by name. It returns false if the flag is not a boolean type. It panics if the flag is not in the flag set.
(name string)
| 318 | // is not a boolean type. It panics if the flag is |
| 319 | // not in the flag set. |
| 320 | func (f Flags) Bool(name string) bool { |
| 321 | val, _ := strconv.ParseBool(f.String(name)) |
| 322 | return val |
| 323 | } |
| 324 | |
| 325 | // Int returns the integer representation of the |
| 326 | // flag given by name. It returns 0 if the flag |
no test coverage detected