Support multiple option values for --image to support shell expansion

This commit is contained in:
timvisee
2023-12-29 13:34:02 +01:00
parent ed99dc4f9a
commit 5e2eb9af21

View File

@@ -16,7 +16,14 @@ pub struct Arguments {
host: String, host: String,
/// Image path(s) /// Image path(s)
#[arg(short, long, value_name = "PATH", required = true, alias = "images")] #[arg(
short,
long,
value_name = "PATH",
required = true,
alias = "images",
num_args(1..)
)]
image: Vec<String>, image: Vec<String>,
/// Draw width [default: screen width] /// Draw width [default: screen width]