change num_args to 1..
This commit is contained in:
parent
26a7ac02b0
commit
2b4fbff2dc
@ -23,11 +23,11 @@ pub struct Args {
|
|||||||
long,
|
long,
|
||||||
help = "Generate playlist for dates, like: 2022-01-01 - 2022-01-10",
|
help = "Generate playlist for dates, like: 2022-01-01 - 2022-01-10",
|
||||||
name = "YYYY-MM-DD",
|
name = "YYYY-MM-DD",
|
||||||
num_args = 0..=3,
|
num_args = 1..,
|
||||||
)]
|
)]
|
||||||
pub generate: Option<Vec<String>>,
|
pub generate: Option<Vec<String>>,
|
||||||
|
|
||||||
#[clap(long, help = "Optional path list for playlist generations", num_args = 0..=20)]
|
#[clap(long, help = "Optional path list for playlist generations", num_args = 1..)]
|
||||||
pub paths: Option<Vec<String>>,
|
pub paths: Option<Vec<String>>,
|
||||||
|
|
||||||
#[clap(short = 'm', long, help = "Playing mode: folder, playlist")]
|
#[clap(short = 'm', long, help = "Playing mode: folder, playlist")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user