aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/register.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/register.rs')
-rw-r--r--src/command/register.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/command/register.rs b/src/command/register.rs
index 20ad1327..46f4a65d 100644
--- a/src/command/register.rs
+++ b/src/command/register.rs
@@ -1,20 +1,21 @@
+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 email: Option<String>,
- #[structopt(long, short)]
+ #[clap(long, short)]
pub password: Option<String>,
}