print passed args when launching; trim args
This commit is contained in:
parent
3033dd2315
commit
78e155408e
@ -264,9 +264,9 @@ fn update(game: &Game, dir: &Path, bonus_content: bool, force: bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn launch(file_path: &PathBuf, args: &str) {
|
fn launch(file_path: &PathBuf, args: &str) {
|
||||||
println!("Launching {}...", file_path.display());
|
println!("Launching {} {}", file_path.display(), args);
|
||||||
std::process::Command::new(file_path)
|
std::process::Command::new(file_path)
|
||||||
.args(args.split(' '))
|
.args(args.trim().split(' '))
|
||||||
.spawn()
|
.spawn()
|
||||||
.expect("Failed to launch the game")
|
.expect("Failed to launch the game")
|
||||||
.wait()
|
.wait()
|
||||||
|
Loading…
Reference in New Issue
Block a user