Skip to content

Commit 827a99c

Browse files
committed
fix refactor to use new group syntax
1 parent dbb0ba2 commit 827a99c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/bin/activate.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,7 @@ enum SubCommand {
4848

4949
/// Activate a profile
5050
#[derive(Parser, Debug)]
51-
#[command(group(
52-
clap::ArgGroup::new("profile")
53-
.required(true)
54-
.multiple(false)
55-
.args(&["profile-path","profile-user"])
56-
))]
51+
#[group(required = true, multiple = false, args = &["profile-path","profile-user"])]
5752
struct ActivateOpts {
5853
/// The closure to activate
5954
closure: String,

0 commit comments

Comments
 (0)