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 committed Mar 16, 2024
1 parent 75e51f4 commit cb0fbb0
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 cb0fbb0

Please sign in to comment.