Returns `true` if the option was present in the parsed input. This works for both value-requiring and valueless options.
(&self, option: &str)
| 258 | /// |
| 259 | /// This works for both value-requiring and valueless options. |
| 260 | pub fn is_set(&self, option: &str) -> bool { |
| 261 | self.options |
| 262 | .get(option) |
| 263 | .and_then(|v| v.value.as_ref()) |
| 264 | .is_some() |
| 265 | } |
| 266 | |
| 267 | /// Retrieves and converts an option value to type `T`. |
| 268 | /// |