]> Untitled Git - bdk-cli/commitdiff
Fix repl mode command parsing
authorSteve Myers <steve@notmandatory.org>
Wed, 6 Jul 2022 05:35:31 +0000 (22:35 -0700)
committerSteve Myers <steve@notmandatory.org>
Wed, 6 Jul 2022 05:35:31 +0000 (22:35 -0700)
Cargo.toml
src/commands.rs

index f9cc694403fd4fba986f3970cb8023df92418835..8ec25994f25ecc9f89a6957e83ab673441c685b0 100644 (file)
@@ -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"]
index d64ff371c5c98981f51d51816c03361dd1c0ef8f..d5c42fcc5722187439d7cf153a2d0246780cf955 100644 (file)
@@ -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};
@@ -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",