update action match function

This commit is contained in:
steven-omaha
2023-02-18 19:01:25 +01:00
parent cec0fa8726
commit 5f4a0caacf
4 changed files with 41 additions and 26 deletions
+7 -7
View File
@@ -21,23 +21,18 @@ fn get_arg_parser() -> Command {
}
fn get_group_cmd() -> Command {
let remove = Command::new(REMOVE)
.about("remove one or more previously imported groups")
.arg_required_else_help(true)
.arg(Arg::new("groups").num_args(1..));
let edit = Command::new(EDIT)
.about("edit one or more existing group files")
.arg_required_else_help(true)
.arg(Arg::new("group").num_args(1..));
let list = Command::new(GROUPS).about("list names of imported groups");
let import = Command::new(IMPORT)
.about("import one or more group files")
.arg_required_else_help(true)
.arg(Arg::new("files").num_args(1..));
let list = Command::new(LIST).about("list names of imported groups");
let new = Command::new(NEW)
.about("create new group files")
.arg_required_else_help(true)
@@ -50,6 +45,11 @@ fn get_group_cmd() -> Command {
)
.arg(Arg::new("groups").num_args(1..));
let remove = Command::new(REMOVE)
.about("remove one or more previously imported groups")
.arg_required_else_help(true)
.arg(Arg::new("groups").num_args(1..));
let show = Command::new(SHOW)
.about("show packages under an imported group")
.arg_required_else_help(true)