From f861893293629f4f8c315b8042295df049973e29 Mon Sep 17 00:00:00 2001 From: Jamie Quigley Date: Thu, 7 Apr 2022 06:32:11 +0100 Subject: Update to clap 3.1.x (#289) --- src/command/login.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/command/login.rs') diff --git a/src/command/login.rs b/src/command/login.rs index c33fa5e1..fe442bc1 100644 --- a/src/command/login.rs +++ b/src/command/login.rs @@ -2,23 +2,25 @@ use std::borrow::Cow; use std::io; use atuin_common::api::LoginRequest; +use clap::AppSettings; +use clap::Parser; use eyre::Result; -use structopt::StructOpt; use tokio::{fs::File, io::AsyncWriteExt}; use atuin_client::api_client; use atuin_client::settings::Settings; -#[derive(StructOpt)] -#[structopt(setting(structopt::clap::AppSettings::DeriveDisplayOrder))] +#[derive(Parser)] +#[clap(setting(AppSettings::DeriveDisplayOrder))] pub struct Cmd { - #[structopt(long, short)] + #[clap(long, short)] pub username: Option, - #[structopt(long, short)] + #[clap(long, short)] pub password: Option, - #[structopt(long, short, help = "the encryption key for your account")] + /// The encryption key for your account + #[clap(long, short)] pub key: Option, } -- cgit v1.3.1