add error NoGroupFilesInArguments

This commit is contained in:
steven-omaha
2023-02-22 12:29:02 +01:00
parent 8815daafcb
commit a4c900c9a7
5 changed files with 15 additions and 7 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ fn get_group_cmd() -> Command {
.short('e')
.long("edit")
.help("edit the new group files after creation")
.action(clap::ArgAction::SetTrue),
.action(clap::ArgAction::SetTrue)
.num_args(0),
)
.arg(Arg::new("groups").num_args(1..))
.visible_alias("n");