Skip to content

Commit

Permalink
cli: fix password prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Apr 24, 2024
1 parent a5ef6ea commit ef863eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bin/btc-hot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,7 @@ fn get_password(password_arg: Option<String>, prompt: &str) -> Result<String, st
if let Some(pass) = password_arg.clone() {
Ok(pass)
} else {
eprint!("{prompt}: ");
std::io::stdout().flush().unwrap();
rpassword::read_password()
rpassword::prompt_password(format!("{prompt}: "))
}
}

Expand Down

0 comments on commit ef863eb

Please sign in to comment.