Skip to content

Commit

Permalink
Require name for yes param
Browse files Browse the repository at this point in the history
Yes param only makes sense if name is provided.
  • Loading branch information
linuskendall committed Dec 12, 2023
1 parent 8af64d4 commit 87e96c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ pub struct EnableDisablePeerOpts {
pub name: Option<Hostname>,

/// Bypass confirmation
#[clap(long)]
#[clap(long,requires("name"))]
pub yes: bool,
}

Expand Down

0 comments on commit 87e96c7

Please sign in to comment.