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)]
#[structopt()]
struct Parameters {
#[structopt(short, long, default_value = "lemmy.ml")]
#[structopt(short, long, use_delimiter = true, default_value = "lemmy.ml")]
start_instances: Vec<String>,
#[structopt(
short,
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>,
#[structopt(short, long, default_value = "20")]