diff options
| author | Conrad Ludgate <conradludgate@gmail.com> | 2022-10-18 09:50:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-18 09:50:22 +0100 |
| commit | 5e2c438dabc74d7e87fad46c725501753a0a8a26 (patch) | |
| tree | c6e1b3aea892e7150cd1d94bd13c68ee2efcea42 /src/command/client/search.rs | |
| parent | Add message begging for help lol 🐢 (#569) (diff) | |
| download | atuin-5e2c438dabc74d7e87fad46c725501753a0a8a26.zip | |
Upgrade clap (#568)
Diffstat (limited to 'src/command/client/search.rs')
| -rw-r--r-- | src/command/client/search.rs | 20 |
1 files changed, 10 insertions, 10 deletions
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<String>, /// Exclude directory from results - #[clap(long = "exclude-cwd")] + #[arg(long = "exclude-cwd")] exclude_cwd: Option<String>, /// Filter search result by exit code - #[clap(long, short)] + #[arg(long, short)] exit: Option<i64>, /// Exclude results with this exit code - #[clap(long = "exclude-exit")] + #[arg(long = "exclude-exit")] exclude_exit: Option<i64>, /// Only include results added before this date - #[clap(long, short)] + #[arg(long, short)] before: Option<String>, /// Only include results after this date - #[clap(long)] + #[arg(long)] after: Option<String>, /// How many entries to return at most - #[clap(long)] + #[arg(long)] limit: Option<i64>, /// 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<String>, /// Show only the text of the command - #[clap(long)] + #[arg(long)] cmd_only: bool, } |
