diff --git a/src/main.rs b/src/main.rs index 9967cfc..d0053a2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,8 +18,8 @@ struct Cli { cols: usize, /// Number of rows in a frame rows: usize, - /// Free-format argument to pass to the executable - arg: String, + /// Free-format arguments to pass to the executable + args: Vec, /// Frame rate for displaying #[arg(short, long, default_value_t = 25)] frame_rate: u64, @@ -37,7 +37,7 @@ fn main() -> Result<(), Box> { let mut child = process::Command::new(&cli.executable) .arg(cli.cols.to_string()) .arg(cli.rows.to_string()) - .arg(cli.arg) + .args(cli.args) .stdout(process::Stdio::piped()) .spawn()?; if cli.debug >= 1 {