Skip to content

Commit

Permalink
Fix repl mode command parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
notmandatory committed Jul 6, 2022
1 parent 073f1c3 commit 292dd1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ default = ["repl", "sqlite-db"]
# To use the app in a REPL mode
repl = ["regex", "rustyline", "fd-lock"]

# Avaialable databse options
# Available database options
key-value-db = ["bdk/key-value-db"]
sqlite-db = ["bdk/sqlite"]

# Avialable blockchain client options
# Available blockchain client options
rpc = ["bdk/rpc"]
electrum = ["bdk/electrum"]
compact_filters = ["bdk/compact_filters"]
Expand Down
2 changes: 2 additions & 0 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//!
//! This module defines all the bdk-cli commands using [structopt]
use structopt::clap::AppSettings;
use structopt::StructOpt;

use bdk::bitcoin::util::bip32::{DerivationPath, ExtendedPrivKey};
Expand Down Expand Up @@ -493,6 +494,7 @@ pub enum KeySubCommand {

#[cfg(feature = "repl")]
#[derive(Debug, StructOpt, Clone, PartialEq)]
#[structopt(global_settings =&[AppSettings::NoBinaryName])]
pub enum ReplSubCommand {
#[cfg(any(
feature = "electrum",
Expand Down

0 comments on commit 292dd1e

Please sign in to comment.