Skip to content

Commit

Permalink
fix passing command line args
Browse files Browse the repository at this point in the history
  • Loading branch information
blahgeek committed Jan 2, 2024
1 parent 089f3a2 commit 36f2ff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ fn process_server_reader(reader: impl std::io::Read,
pub fn run_app_forever(client_reader: impl std::io::Read + Send + 'static,
client_writer: impl std::io::Write + Send + 'static,
mut server_cmd: std::process::Command) -> Result<()> {
info!("Running server {:?}", server_cmd);
let proc = server_cmd
.stdin(std::process::Stdio::piped())
.stdout(std::process::Stdio::piped())
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn main() -> Result<()> {
}));

let mut cmd = std::process::Command::new(&args[1]);
cmd.args(&args[1..]);
cmd.args(&args[2..]);

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

0 comments on commit 36f2ff4

Please sign in to comment.