fix: arg parsing

The 'pacdef group import' argument was called 'files', while we
expected it to be called 'groups'.
This commit is contained in:
steven-omaha
2023-05-23 17:43:06 +02:00
parent a4639a1c3a
commit 9f4a5e4b48
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ fn get_group_cmd() -> Command {
.about("import one or more group files")
.arg_required_else_help(true)
.arg(
Arg::new("files")
Arg::new("groups")
.num_args(1..)
.required(true)
.help("the file to import as group"),
+1
View File
@@ -61,6 +61,7 @@ fn get_edit(args: &clap::ArgMatches) -> Edit {
}
fn get_groups(args: &clap::ArgMatches) -> Groups {
dbg!(&args);
Groups(
args.get_many::<String>("groups")
.expect(ARGS_CONSISTENT)