Compare commits

...

2 Commits

Author SHA1 Message Date
9276ec05f0 remove conflict with all and list 2025-04-17 18:32:25 -04:00
b7fcc66fa5 add conflicts for options with interactive 2025-04-17 18:31:24 -04:00

View File

@ -11,11 +11,11 @@ use harmony_tui;
#[command(version, about, long_about = None)]
pub struct Args {
/// Run score(s) without prompt
#[arg(short, long, default_value_t = false)]
#[arg(short, long, default_value_t = false, conflicts_with = "interactive")]
yes: bool,
/// Filter query
#[arg(short, long)]
#[arg(short, long, conflicts_with = "interactive")]
filter: Option<String>,
/// Run interactive TUI or not
@ -29,16 +29,16 @@ pub struct Args {
default_value_t = true,
default_value_if("number", ArgPredicate::IsPresent, "false"),
conflicts_with = "number",
conflicts_with = "list"
conflicts_with = "interactive"
)]
all: bool,
/// Run nth matching, zero indexed
#[arg(short, long, default_value_t = 0)]
#[arg(short, long, default_value_t = 0, conflicts_with = "interactive")]
number: usize,
/// list scores, will also be affected by run filter
#[arg(short, long, default_value_t = false)]
#[arg(short, long, default_value_t = false, conflicts_with = "interactive")]
list: bool,
}