diff --git a/src/parse.rs b/src/parse.rs index 938369f..b973d43 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -7,7 +7,7 @@ pub fn parse_line(line: &str) -> io::Result<()> { let tokens = line.trim().split(' ').collect::>(); let mut args: &[&str] = &[]; let command = tokens[0]; - if !args.is_empty() { + if tokens.len() > 1 { args = &tokens[1..]; } let mut command = Command::new(command);