2023-10-20 12:06:57 -07:00
|
|
|
use clap::Parser;
|
|
|
|
|
|
|
|
#[derive(Parser, Debug, Clone)]
|
|
|
|
#[command(author, version, about, long_about = None)]
|
|
|
|
pub struct Args {
|
2023-12-21 02:20:55 -08:00
|
|
|
#[arg(short, long)]
|
|
|
|
pub rpc_url: String,
|
|
|
|
|
2023-12-05 06:42:58 -08:00
|
|
|
#[arg(short, long)]
|
|
|
|
pub grpc_address_to_fetch_blocks: Option<String>,
|
2023-11-23 02:20:30 -08:00
|
|
|
|
2023-12-01 03:08:27 -08:00
|
|
|
#[arg(short = 'x', long)]
|
2023-11-23 02:20:30 -08:00
|
|
|
pub grpc_x_token: Option<String>,
|
|
|
|
|
2023-12-01 03:08:27 -08:00
|
|
|
#[arg(short, long, value_delimiter = ',')]
|
|
|
|
pub banking_grpc_addresses: Vec<String>,
|
2023-11-24 02:41:19 -08:00
|
|
|
|
2023-11-23 02:10:20 -08:00
|
|
|
/// enable metrics to prometheus at addr
|
|
|
|
#[arg(short = 'm', long, default_value_t = String::from("[::]:9091"))]
|
|
|
|
pub prometheus_addr: String,
|
2023-12-26 05:40:33 -08:00
|
|
|
|
|
|
|
#[arg(short = 'a', long, default_value_t = String::from("alts.txt"))]
|
|
|
|
pub alts: String,
|
2023-10-20 12:06:57 -07:00
|
|
|
}
|