--interactive/-i and --score/-s do not conflict in Query::query()

This commit is contained in:
c02y 2022-01-24 15:11:48 +08:00
parent bd71cf3a5d
commit 226d7deeb4
2 changed files with 3 additions and 3 deletions

View File

@ -68,8 +68,8 @@ _arguments "${_arguments_options[@]}" \
'(-l --list)--interactive[Use interactive selection]' \
'(-i --interactive)-l[List all matching directories]' \
'(-i --interactive)--list[List all matching directories]' \
'(-i --interactive)-s[Print score with results]' \
'(-i --interactive)--score[Print score with results]' \
'-s[Print score with results]' \
'--score[Print score with results]' \
'-h[Print help information]' \
'--help[Print help information]' \
'-V[Print version information]' \

View File

@ -112,7 +112,7 @@ pub struct Query {
pub list: bool,
/// Print score with results
#[clap(long, short, conflicts_with = "interactive")]
#[clap(long, short)]
pub score: bool,
/// Exclude a path from results