diff --git a/src/commands.rs b/src/commands.rs index 66b07f0..a89e636 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -179,7 +179,7 @@ pub enum WalletSubCommand { } /// Config options wallet operations can take. -#[derive(Debug, Args, Clone, PartialEq)] +#[derive(Debug, Parser, Clone, PartialEq)] pub struct WalletOpts { /// Selects the wallet to use. #[clap(name = "WALLET_NAME", short = 'w', long = "wallet")] diff --git a/src/wasm.rs b/src/wasm.rs index 0a9e7ad..5e69ffc 100644 --- a/src/wasm.rs +++ b/src/wasm.rs @@ -9,6 +9,7 @@ use bitcoin::*; use bdk::blockchain::AnyBlockchain; use bdk::database::AnyDatabase; use bdk::miniscript::{MiniscriptKey, Translator}; +use clap::Parser; use js_sys::Promise; use regex::Regex; use std::collections::HashMap; @@ -17,7 +18,6 @@ use std::ops::Deref; use std::path::PathBuf; use std::rc::Rc; use std::str::FromStr; -use structopt::StructOpt; use wasm_bindgen::prelude::*; use wasm_bindgen_futures::future_to_promise;