add remove
This commit is contained in:
+7
-1
@@ -25,6 +25,12 @@ fn get_arg_parser() -> Command<'static> {
|
||||
.arg_required_else_help(true)
|
||||
.arg(Arg::new("files").multiple_values(true)),
|
||||
)
|
||||
.subcommand(
|
||||
Command::new(REMOVE)
|
||||
.about("remove one or more previously imported groups")
|
||||
.arg_required_else_help(true)
|
||||
.arg(Arg::new("groups").multiple_values(true)),
|
||||
)
|
||||
.subcommand(
|
||||
Command::new(SHOW)
|
||||
.about("show packages under an imported group")
|
||||
@@ -45,7 +51,7 @@ pub fn get() -> clap::ArgMatches {
|
||||
get_arg_parser().get_matches()
|
||||
}
|
||||
|
||||
pub(crate) fn get_file_paths(arg_match: &ArgMatches) -> Vec<PathBuf> {
|
||||
pub(crate) fn get_absolutized_file_paths(arg_match: &ArgMatches) -> Vec<PathBuf> {
|
||||
arg_match
|
||||
.get_many::<String>("files")
|
||||
.unwrap()
|
||||
|
||||
Reference in New Issue
Block a user