From 226d7deeb4244a2a38d2f0c5511c7d37dbbc7d71 Mon Sep 17 00:00:00 2001 From: c02y Date: Mon, 24 Jan 2022 15:11:48 +0800 Subject: [PATCH] --interactive/-i and --score/-s do not conflict in Query::query() --- contrib/completions/_zoxide | 4 ++-- src/app/_app.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/completions/_zoxide b/contrib/completions/_zoxide index 9fb15d6..6aa9a44 100644 --- a/contrib/completions/_zoxide +++ b/contrib/completions/_zoxide @@ -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]' \ diff --git a/src/app/_app.rs b/src/app/_app.rs index 3d19da5..2d97b60 100644 --- a/src/app/_app.rs +++ b/src/app/_app.rs @@ -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