summaryrefslogtreecommitdiff
path: root/src/cmd/init.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-10-02 10:50:35 +0300
committerLars Wirzenius <liw@liw.fi>2022-10-23 09:38:00 +0300
commit5522e9c40a6b2beb1cfea51e90351b90fada5931 (patch)
tree201e4f57bf4d3240b02d5b34856c4bdbff8f1860 /src/cmd/init.rs
parent1baa17c93e6cccd6194592076210625364058615 (diff)
downloadobnam2-5522e9c40a6b2beb1cfea51e90351b90fada5931.tar.gz
refactor: use clap instead of structopt
clap version 3 basically replaces structopt entirely. Sponsored-by: author
Diffstat (limited to 'src/cmd/init.rs')
-rw-r--r--src/cmd/init.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/init.rs b/src/cmd/init.rs
index 8e555ca..1310f66 100644
--- a/src/cmd/init.rs
+++ b/src/cmd/init.rs
@@ -3,15 +3,15 @@
use crate::config::ClientConfig;
use crate::error::ObnamError;
use crate::passwords::{passwords_filename, Passwords};
-use structopt::StructOpt;
+use clap::Parser;
const PROMPT: &str = "Obnam passphrase: ";
/// Initialize client by setting passwords.
-#[derive(Debug, StructOpt)]
+#[derive(Debug, Parser)]
pub struct Init {
/// Only for testing.
- #[structopt(long)]
+ #[clap(long)]
insecure_passphrase: Option<String>,
}