Expand description
Parse cmdlines in a way that resembles the platform default.
§Example
use cmdline_parser::Parser;
let mut parser = Parser::new(r#"mv "my file" project/"#);
assert_eq!(parser.next(), Some((0..2, "mv".into())));
assert_eq!(parser.next(), Some((3..12, "my file".into())));
assert_eq!(parser.next(), Some((13..21, "project/".into())));
assert_eq!(parser.next(), None);
Re-exports§
pub use unix::Parser;
Modules§
Functions§
- parse_
single - Parse the given string as a single argument.