Skip to content

Commit

Permalink
Update limit arg to limits for consistency
Browse files Browse the repository at this point in the history
Co-authored-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com>
  • Loading branch information
elizabethengelman and leighmcculloch committed Feb 21, 2024
1 parent 2e706d8 commit 4d246d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/soroban-cli/src/commands/network/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct Cmd {

/// Optional argument to specify the limits for the local network only
#[arg(short = 'l', long)]
pub limit: Option<String>,
pub limits: Option<String>,

/// Argument to specify the HOST_PORT:CONTAINER_PORT mapping
#[arg(short = 'p', long, num_args = 1.., default_value = DEFAULT_PORT_MAPPING)]
Expand Down Expand Up @@ -184,9 +184,9 @@ fn get_protocol_version_arg(cmd: &Cmd) -> String {
}

fn get_limits_arg(cmd: &Cmd) -> String {
if cmd.network == Network::Local && cmd.limit.is_some() {
let limit = cmd.limit.as_ref().unwrap();
format!("--limits {limit}")
if cmd.network == Network::Local && cmd.limits.is_some() {
let limits = cmd.limits.as_ref().unwrap();
format!("--limits {limits}")
} else {
String::new()
}
Expand Down

0 comments on commit 4d246d7

Please sign in to comment.