Skip to content

Commit

Permalink
[fix] CLI start arg issues
Browse files Browse the repository at this point in the history
  • Loading branch information
danielterwiel committed Sep 14, 2023
1 parent 496b763 commit 526a9e8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cli/src/main.rs
Expand Up @@ -28,13 +28,13 @@ enum Commands {
/// The port http server should bind to.
/// Default: 3001
/// TODO: add support to override (both here and in the development_server)
#[clap(short, long, default_value = "3001")]
#[clap(long, default_value = "3001")]
http_port: u16,

/// The port rpc server should bind to
/// Default: 50051
/// TODO: add support to override (both here and in the development_server)
#[clap(short, long, default_value = "50051")]
#[clap(long, default_value = "50051")]
rpc_port: u16,

/// Open the development server in your default browser after starting.
Expand Down Expand Up @@ -77,8 +77,9 @@ fn start(
.args(&[
"run",
"--package=development_server",
format!("--http_port={}", http_port).as_str(),
format!("--rpc_port={}", rpc_port).as_str(),
"--",
format!("--http-port={}", http_port).as_str(),
format!("--rpc-port={}", rpc_port).as_str(),
])
.stdout(Stdio::piped())
.spawn();
Expand Down

0 comments on commit 526a9e8

Please sign in to comment.