aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client/sync
diff options
context:
space:
mode:
authorConrad Ludgate <conradludgate@gmail.com>2022-10-18 09:50:22 +0100
committerGitHub <noreply@github.com>2022-10-18 09:50:22 +0100
commit5e2c438dabc74d7e87fad46c725501753a0a8a26 (patch)
treec6e1b3aea892e7150cd1d94bd13c68ee2efcea42 /src/command/client/sync
parentAdd message begging for help lol 🐢 (#569) (diff)
downloadatuin-5e2c438dabc74d7e87fad46c725501753a0a8a26.zip
Upgrade clap (#568)
Diffstat (limited to '')
-rw-r--r--src/command/client/sync.rs4
-rw-r--r--src/command/client/sync/login.rs3
-rw-r--r--src/command/client/sync/register.rs3
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>,