Skip to content

Commit

Permalink
fix(qdir): flags name, pet, and length cannot be used together
Browse files Browse the repository at this point in the history
  • Loading branch information
k3ii committed Sep 1, 2024
1 parent af97b5d commit bad1d5f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use clap::{command, Arg};
use clap::{command, Arg, ArgGroup};
use qdir::make_dir;

fn main() {
Expand Down Expand Up @@ -41,6 +41,11 @@ fn main() {
.action(clap::ArgAction::SetTrue)
.help("Use the system's temporary directory"),
)
.group(
ArgGroup::new("name_or_pet_length")
.args(&["name", "pet", "length"])
.required(false),
)
.get_matches();

let depth = matches
Expand Down

0 comments on commit bad1d5f

Please sign in to comment.