diff --git a/src/lib.rs b/src/lib.rs index d4730df..141453d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -144,7 +144,7 @@ pub fn parse_command>( let argv = shell_words::split(&command_string)?; Ok(Some(( Command { - program: argv[0].clone(), + program: argv.remove(0), argv, }, command_string,