From 292dd1e6bdc3c5d061d90028934026d4c60aaf24 Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Tue, 5 Jul 2022 22:35:31 -0700 Subject: [PATCH] Fix repl mode command parsing --- Cargo.toml | 4 ++-- src/commands.rs | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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", -- 2.49.0