From cb0fbb076ee330dac3fc1b192cdfc42c154edc03 Mon Sep 17 00:00:00 2001 From: ChaudharyRaman Date: Sat, 16 Mar 2024 22:01:50 +0530 Subject: [PATCH] feat: Added validation for --client-listen-urls and --peer-listen-urls Signed-off-by: ChaudharyRaman --- crates/xline/src/utils/args.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/xline/src/utils/args.rs b/crates/xline/src/utils/args.rs index d162aa85b..3379d0439 100644 --- a/crates/xline/src/utils/args.rs +++ b/crates/xline/src/utils/args.rs @@ -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, /// Node peer advertise urls #[clap(long, num_args = 1.., value_delimiter = ',')] peer_advertise_urls: Vec, /// Node client listen urls - #[clap(long, num_args = 1.., value_delimiter = ',')] + #[clap(long, required = true, num_args = 1.., value_delimiter = ',')] client_listen_urls: Vec, /// Node client advertise urls #[clap(long, num_args = 1.., value_delimiter = ',')]