Parse an iterator of command line options and apply them to `config`. Note that parsing terminates after the first error is encountered.
(
iter: I,
config: &mut dyn Configurable,
loc: Location,
)
| 90 | /// |
| 91 | /// Note that parsing terminates after the first error is encountered. |
| 92 | pub fn parse_options<'a, I>( |
| 93 | iter: I, |
| 94 | config: &mut dyn Configurable, |
| 95 | loc: Location, |
| 96 | ) -> Result<(), ParseOptionError> |
| 97 | where |
| 98 | I: Iterator<Item = &'a str>, |
| 99 | { |
| 100 | for opt in iter { |
| 101 | parse_option(opt, config, loc)?; |
| 102 | } |
| 103 | Ok(()) |
| 104 | } |
| 105 | |
| 106 | /// Parse an single command line options and apply it to `config`. |
| 107 | pub fn parse_option( |
no test coverage detected