Registers a flag-style option that does not take a value. When this option appears in the input string (without `=`), it is marked as set. Use [`is_set`](Self::is_set) to query it.
(&mut self, option: &str)
| 215 | /// When this option appears in the input string (without `=`), it is |
| 216 | /// marked as set. Use [`is_set`](Self::is_set) to query it. |
| 217 | pub fn add_valueless(&mut self, option: &str) -> &mut Self { |
| 218 | self.options.insert( |
| 219 | option.to_owned(), |
| 220 | OptionParserValue { |
| 221 | value: None, |
| 222 | requires_value: false, |
| 223 | }, |
| 224 | ); |
| 225 | |
| 226 | self |
| 227 | } |
| 228 | |
| 229 | /// Registers multiple flag-style options that do not take a value. |
| 230 | /// |