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/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/command/mod.rs') diff --git a/src/command/mod.rs b/src/command/mod.rs index df6b66e9..038b24c8 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -13,19 +13,19 @@ mod init; mod contributors; #[derive(Subcommand)] -#[clap(infer_subcommands = true)] +#[command(infer_subcommands = true)] pub enum AtuinCmd { #[cfg(feature = "client")] - #[clap(flatten)] + #[command(flatten)] Client(client::Cmd), /// Start an atuin server #[cfg(feature = "server")] - #[clap(subcommand)] + #[command(subcommand)] Server(server::Cmd), /// Output shell setup - #[clap(subcommand)] + #[command(subcommand)] Init(init::Cmd), /// Generate a UUID @@ -36,11 +36,11 @@ pub enum AtuinCmd { /// Generate shell completions GenCompletions { /// Set the shell for generating completions - #[clap(long, short)] + #[arg(long, short)] shell: Shell, /// Set the output directory - #[clap(long, short)] + #[arg(long, short)] out_dir: Option, }, } -- cgit v1.3.1