Skip to content

Commit

Permalink
cli: fix clap bug with selecting indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed May 1, 2024
1 parent e4c1a7c commit 03bb754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pub const DEFAULT_ELECTRUM: &str = "example.com:50001";
pub const DEFAULT_ESPLORA: &str = "https://blockstream.info/testnet/api";

#[derive(Args, Clone, PartialEq, Eq, Debug)]
#[group(args = ["electrum", "esplora"], required = true)]
pub struct ResolverOpt {
/// Electrum server to use.
#[arg(
Expand All @@ -69,7 +70,6 @@ pub struct ResolverOpt {
default_missing_value = DEFAULT_ESPLORA,
num_args = 0..=1,
require_equals = true,
required_unless_present = "electrum",
env = "ESPLORA_SERVER",
value_hint = ValueHint::Url,
value_name = "URL"
Expand Down

0 comments on commit 03bb754

Please sign in to comment.