Skip to content

Commit

Permalink
make --completion exclusive
Browse files Browse the repository at this point in the history
should fix issue #263
  • Loading branch information
vic1707 authored and djc committed May 15, 2023
1 parent c3f9725 commit 00d66a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/flamegraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct Opt {
pid: Option<u32>,

/// Generate shell completions for the given shell.
#[clap(long, value_name = "SHELL", conflicts_with_all = &["pid", "trailing-arguments"])]
#[clap(long, value_name = "SHELL", exclusive(true))]
completions: Option<Shell>,

#[clap(flatten)]
Expand Down

0 comments on commit 00d66a7

Please sign in to comment.