This provides the user with a helpful error message in case a key="value"
message was specified but couldn't be parsed.
Err(errs) => errs.into_iter().for_each(|mut err| err.cancel()),
}
- error!(r#"expected `key` or `key="value"`"#);
+ error!(concat!(
+ r#"expected `key` or `key="value"`, ensure escaping is appropriate"#,
+ r#" for your shell, try 'key="value"' or key=\"value\""#
+ ));
})
.collect::<CrateConfig>();
cfg.into_iter().map(|(a, b)| (a.to_string(), b.map(|b| b.to_string()))).collect()