Skip to content

Commit

Permalink
Update required flag for Node URL in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Eshanatnight committed Apr 3, 2024
1 parent bb12eeb commit 8c9a183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ impl Cli {
.long(Self::NODE_URL)
.env("P_NODE_URL")
.value_name("URL")
.required(true)
.required(false)
.value_parser(validation::socket_addr)
.help("Node URL for Parseable server")
)
Expand Down Expand Up @@ -371,7 +371,7 @@ impl FromArgMatches for Cli {
self.node_url = m
.get_one::<String>(Self::NODE_URL)
.cloned()
.expect("Node URL set");
.unwrap_or(self.address.clone());

self.local_staging_path = m
.get_one::<PathBuf>(Self::STAGING)
Expand Down

0 comments on commit 8c9a183

Please sign in to comment.