diff options
| author | Jamie Quigley <jamie@quigley.xyz> | 2022-04-07 06:32:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-07 06:32:11 +0100 |
| commit | f861893293629f4f8c315b8042295df049973e29 (patch) | |
| tree | 995af6417a0e02a05478703023f9c9438f9ac500 /src/command/login.rs | |
| parent | Add compact mode (#288) (diff) | |
| download | atuin-f861893293629f4f8c315b8042295df049973e29.zip | |
Update to clap 3.1.x (#289)
Diffstat (limited to 'src/command/login.rs')
| -rw-r--r-- | src/command/login.rs | 14 |
1 files changed, 8 insertions, 6 deletions
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<String>, - #[structopt(long, short)] + #[clap(long, short)] pub password: Option<String>, - #[structopt(long, short, help = "the encryption key for your account")] + /// The encryption key for your account + #[clap(long, short)] pub key: Option<String>, } |
