Skip to content

Commit 36f2ff4

Browse files
committed
fix passing command line args
1 parent 089f3a2 commit 36f2ff4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/app.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ fn process_server_reader(reader: impl std::io::Read,
8787
pub fn run_app_forever(client_reader: impl std::io::Read + Send + 'static,
8888
client_writer: impl std::io::Write + Send + 'static,
8989
mut server_cmd: std::process::Command) -> Result<()> {
90+
info!("Running server {:?}", server_cmd);
9091
let proc = server_cmd
9192
.stdin(std::process::Stdio::piped())
9293
.stdout(std::process::Stdio::piped())

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn main() -> Result<()> {
2222
}));
2323

2424
let mut cmd = std::process::Command::new(&args[1]);
25-
cmd.args(&args[1..]);
25+
cmd.args(&args[2..]);
2626

2727
app::run_app_forever(std::io::stdin(), std::io::stdout(), cmd)
2828
}

0 commit comments

Comments
 (0)