[][src]Function shli::parse::split

pub fn split(cmdline: &str) -> Vec<String>

Splits a commandline into its components/arguments. Works similar to split_whitespace.

The main difference to split_whitespace is: It respects whitespace escaping (", ', \) as well as escaping of the escaping characters (\", '\', …). Thus, strings ("A B C") will show up as single arguments.