pub fn parse<T: Into<ParseOptions>>(
input: &str,
options: T,
) -> Result<Vec<String>, ParseError>Expand description
Parse a shellish string into elements. This function will parse a single command. See the module-level documentation for more information.
input: The string to parse.options: AParseOptionsinstance, describing the options in effect for this parse. For compatibility, may also betrueas shorthand forParseOptions::new(), andfalseas shorthand forParseOptions::new().no_strict_escapes().
When parsing is successful, returns a vector containing each individual element of the parsed command line.