Skip to content

Commit

Permalink
feat: Added validation for --client-listen-urls and --peer-listen-urls
Browse files Browse the repository at this point in the history
Signed-off-by: ChaudharyRaman <[email protected]>
  • Loading branch information
ChaudharyRaman authored and mergify[bot] committed Mar 18, 2024
1 parent 75e51f4 commit e56a82d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/xline/src/utils/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ pub struct ServerArgs {
#[clap(long)]
name: String,
/// Node peer listen urls
#[clap(long, num_args = 1.., value_delimiter = ',')]
#[clap(long, required = true, num_args = 1.., value_delimiter = ',')]
peer_listen_urls: Vec<String>,
/// Node peer advertise urls
#[clap(long, num_args = 1.., value_delimiter = ',')]
peer_advertise_urls: Vec<String>,
/// Node client listen urls
#[clap(long, num_args = 1.., value_delimiter = ',')]
#[clap(long, required = true, num_args = 1.., value_delimiter = ',')]
client_listen_urls: Vec<String>,
/// Node client advertise urls
#[clap(long, num_args = 1.., value_delimiter = ',')]
Expand Down

0 comments on commit e56a82d

Please sign in to comment.