parse

Function parse 

Source
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: A ParseOptions instance, describing the options in effect for this parse. For compatibility, may also be true as shorthand for ParseOptions::new(), and false as shorthand for ParseOptions::new().no_strict_escapes().

When parsing is successful, returns a vector containing each individual element of the parsed command line.