diff options
Diffstat (limited to '')
| -rw-r--r-- | src/command/client/sync.rs | 4 | ||||
| -rw-r--r-- | src/command/client/sync/login.rs | 3 | ||||
| -rw-r--r-- | src/command/client/sync/register.rs | 3 |
3 files changed, 4 insertions, 6 deletions
diff --git a/src/command/client/sync.rs b/src/command/client/sync.rs index af809f3e..51fcbf63 100644 --- a/src/command/client/sync.rs +++ b/src/command/client/sync.rs @@ -8,12 +8,12 @@ mod logout; mod register; #[derive(Subcommand)] -#[clap(infer_subcommands = true)] +#[command(infer_subcommands = true)] pub enum Cmd { /// Sync with the configured server Sync { /// Force re-download everything - #[clap(long, short)] + #[arg(long, short)] force: bool, }, diff --git a/src/command/client/sync/login.rs b/src/command/client/sync/login.rs index 29222563..333a1514 100644 --- a/src/command/client/sync/login.rs +++ b/src/command/client/sync/login.rs @@ -1,6 +1,6 @@ use std::io; -use clap::{AppSettings, Parser}; +use clap::Parser; use eyre::Result; use tokio::{fs::File, io::AsyncWriteExt}; @@ -9,7 +9,6 @@ use atuin_common::api::LoginRequest; use rpassword::prompt_password; #[derive(Parser)] -#[clap(setting(AppSettings::DeriveDisplayOrder))] pub struct Cmd { #[clap(long, short)] pub username: Option<String>, diff --git a/src/command/client/sync/register.rs b/src/command/client/sync/register.rs index 2b5b9ced..6b51fac8 100644 --- a/src/command/client/sync/register.rs +++ b/src/command/client/sync/register.rs @@ -1,11 +1,10 @@ -use clap::{AppSettings, Parser}; +use clap::Parser; use eyre::Result; use tokio::{fs::File, io::AsyncWriteExt}; use atuin_client::{api_client, settings::Settings}; #[derive(Parser)] -#[clap(setting(AppSettings::DeriveDisplayOrder))] pub struct Cmd { #[clap(long, short)] pub username: Option<String>, |
