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/history.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/command/client/history.rs') diff --git a/src/command/client/history.rs b/src/command/client/history.rs index 07f4b319..6a78adc9 100644 --- a/src/command/client/history.rs +++ b/src/command/client/history.rs @@ -20,7 +20,7 @@ use log::debug; use super::search::format_duration; #[derive(Subcommand)] -#[clap(infer_subcommands = true)] +#[command(infer_subcommands = true)] pub enum Cmd { /// Begins a new command in the history Start { command: Vec }, @@ -28,33 +28,33 @@ pub enum Cmd { /// Finishes a new command in the history (adds time, exit code) End { id: String, - #[clap(long, short)] + #[arg(long, short)] exit: i64, }, /// List all items in history List { - #[clap(long, short)] + #[arg(long, short)] cwd: bool, - #[clap(long, short)] + #[arg(long, short)] session: bool, - #[clap(long)] + #[arg(long)] human: bool, /// Show only the text of the command - #[clap(long)] + #[arg(long)] cmd_only: bool, }, /// Get the last command ran Last { - #[clap(long)] + #[arg(long)] human: bool, /// Show only the text of the command - #[clap(long)] + #[arg(long)] cmd_only: bool, }, } -- cgit v1.3.1