Skip to content

Commit 5bb4384

Browse files
committed
Updated clap settings to add interlock between flags.
1 parent 0dceef7 commit 5bb4384

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ struct Args {
2929
ignore_file: PathBuf,
3030

3131
/// Download and process only a specific folder within the repository
32-
#[clap(short, long, value_name = "FOLDER PATH")]
32+
#[clap(short, long, value_name = "FOLDER PATH", conflicts_with = "pr")]
3333
folder: Option<String>,
3434

3535
/// Process only the files changed in a specific pull request
36-
#[clap(long, value_name = "PULL REQUEST NUMBER")]
36+
#[clap(long, value_name = "PULL REQUEST NUMBER", conflicts_with = "folder")]
3737
pr: Option<u32>,
3838
}
3939

0 commit comments

Comments
 (0)