Skip to content

Commit

Permalink
set action
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Jul 11, 2024
1 parent e1f1a38 commit 49112c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::path::PathBuf;

use clap::{builder::PossibleValuesParser, crate_version, Arg, Command};
use clap::{builder::PossibleValuesParser, crate_version, Arg, ArgAction, Command};

// error handling
use crate::{encrypted_sled::PasswordMethod, mnemonic::Cmd, TofndResult};
Expand Down Expand Up @@ -58,6 +58,7 @@ pub fn parse_args() -> TofndResult<Config> {
"Skip providing a password. (default: disabled) **Security warning:** If this option is set then on-disk storage is encrypted with a default (and insecure) password.",
)
.long("no-password")
.action(ArgAction::SetTrue)
.required(false)
.display_order(0),
)
Expand Down

0 comments on commit 49112c1

Please sign in to comment.