GetBoolOpt gets the option identified by the specified name.
(name string, flags *flag.FlagSet)
| 125 | |
| 126 | // GetBoolOpt gets the option identified by the specified name. |
| 127 | func GetBoolOpt(name string, flags *flag.FlagSet) bool { |
| 128 | opt, _ := strconv.ParseBool(GetStringOpt(name, flags)) |
| 129 | return opt |
| 130 | } |
| 131 | |
| 132 | // GetStringOpt gets the option identified by the specified name. |
| 133 | func GetStringOpt(name string, flags *flag.FlagSet) string { |
no test coverage detected