From: Steve Myers Date: Wed, 6 Jul 2022 05:35:31 +0000 (-0700) Subject: Fix repl mode command parsing X-Git-Tag: v0.6.0~9^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/struct.CommandStringError.html?a=commitdiff_plain;h=292dd1e6bdc3c5d061d90028934026d4c60aaf24;p=bdk-cli Fix repl mode command parsing --- diff --git a/Cargo.toml b/Cargo.toml index f9cc694..8ec2599 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] diff --git a/src/commands.rs b/src/commands.rs index d64ff37..d5c42fc 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -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",