Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from structopt to clap. #124

Merged
merged 10 commits into from
Nov 29, 2022
Prev Previous commit
Next Next commit
Fix wasm
rajarshimaitra committed Nov 21, 2022
commit 1e21cc74f0fae16f6da1cf29983a8c91ba3010c9
2 changes: 1 addition & 1 deletion src/commands.rs
Original file line number Diff line number Diff line change
@@ -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")]
2 changes: 1 addition & 1 deletion src/wasm.rs
Original file line number Diff line number Diff line change
@@ -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;