}
/// 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")]
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;
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;