From b242c845be7e6688bf8f518bc66580a8c9f07c06 Mon Sep 17 00:00:00 2001 From: fdai7375 Date: Tue, 17 Jan 2023 08:33:07 +0100 Subject: [PATCH] fix: arguments will now be parsed --- src/parse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);