Handle comma separated params correctly

This commit is contained in:
Felix Ableitner 2022-05-16 14:23:32 +02:00
parent 21cf61f847
commit 7ede38f584

View file

@ -7,12 +7,13 @@ use structopt::StructOpt;
#[derive(StructOpt, Debug)] #[derive(StructOpt, Debug)]
#[structopt()] #[structopt()]
struct Parameters { struct Parameters {
#[structopt(short, long, default_value = "lemmy.ml")] #[structopt(short, long, use_delimiter = true, default_value = "lemmy.ml")]
start_instances: Vec<String>, start_instances: Vec<String>,
#[structopt( #[structopt(
short, short,
long, long,
default_value = "ds9.lemmy.ml, enterprise.lemmy.ml, voyager.lemmy.ml, test.lemmy.ml" use_delimiter = true,
default_value = "ds9.lemmy.ml,enterprise.lemmy.ml,voyager.lemmy.ml,test.lemmy.ml"
)] )]
exclude_instances: Vec<String>, exclude_instances: Vec<String>,
#[structopt(short, long, default_value = "20")] #[structopt(short, long, default_value = "20")]