Skip to content

Commit

Permalink
cli: fix indexer clap args
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jul 16, 2024
1 parent 0274bd8 commit 1604ca1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/cli/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ pub const DEFAULT_MEMPOOL: &str = "https://mempool.space/{network}/api";
#[derive(Args, Clone, PartialEq, Eq, Debug)]
#[group(args = ["electrum", "esplora", "mempool"])]
pub struct ResolverOpt {
/// Electrum server to use.
/// Electrum server to use
#[arg(
conflicts_with = "esplora",
long,
global = true,
default_missing_value = DEFAULT_ELECTRUM,
Expand All @@ -63,9 +62,8 @@ pub struct ResolverOpt {
)]
pub electrum: Option<String>,

/// Esplora server to use.
/// Esplora server to use
#[arg(
conflicts_with = "electrum",
long,
global = true,
default_missing_value = DEFAULT_ESPLORA,
Expand All @@ -77,9 +75,8 @@ pub struct ResolverOpt {
)]
pub esplora: Option<String>,

/// mempool server to use.
/// Mempool server to use
#[arg(
conflicts_with = "electrum",
long,
global = true,
default_missing_value = DEFAULT_MEMPOOL,
Expand Down

0 comments on commit 1604ca1

Please sign in to comment.