From 5e2c438dabc74d7e87fad46c725501753a0a8a26 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Tue, 18 Oct 2022 09:50:22 +0100 Subject: Upgrade clap (#568) --- src/command/client/search.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/command/client/search.rs') diff --git a/src/command/client/search.rs b/src/command/client/search.rs index 1cef1ffc..26026f34 100644 --- a/src/command/client/search.rs +++ b/src/command/client/search.rs @@ -18,45 +18,45 @@ pub use duration::format_duration; #[derive(Parser)] pub struct Cmd { /// Filter search result by directory - #[clap(long, short)] + #[arg(long, short)] cwd: Option, /// Exclude directory from results - #[clap(long = "exclude-cwd")] + #[arg(long = "exclude-cwd")] exclude_cwd: Option, /// Filter search result by exit code - #[clap(long, short)] + #[arg(long, short)] exit: Option, /// Exclude results with this exit code - #[clap(long = "exclude-exit")] + #[arg(long = "exclude-exit")] exclude_exit: Option, /// Only include results added before this date - #[clap(long, short)] + #[arg(long, short)] before: Option, /// Only include results after this date - #[clap(long)] + #[arg(long)] after: Option, /// How many entries to return at most - #[clap(long)] + #[arg(long)] limit: Option, /// Open interactive search UI - #[clap(long, short)] + #[arg(long, short)] interactive: bool, /// Use human-readable formatting for time - #[clap(long)] + #[arg(long)] human: bool, query: Vec, /// Show only the text of the command - #[clap(long)] + #[arg(long)] cmd_only: bool, } -- cgit v1.3.1