fix: show trace after args
This commit is contained in:
parent
85a6a4df38
commit
99cbcc03d9
|
@ -43,9 +43,6 @@ pub fn build(systems: &[String], show_trace: bool, minimal: bool) -> Result<Outp
|
||||||
} else {
|
} else {
|
||||||
Command::new("nom")
|
Command::new("nom")
|
||||||
};
|
};
|
||||||
if show_trace {
|
|
||||||
cmd.arg("--show-trace");
|
|
||||||
};
|
|
||||||
let cmd = cmd
|
let cmd = cmd
|
||||||
.current_dir(dir)
|
.current_dir(dir)
|
||||||
.arg("build")
|
.arg("build")
|
||||||
|
@ -55,6 +52,9 @@ pub fn build(systems: &[String], show_trace: bool, minimal: bool) -> Result<Outp
|
||||||
.stdin(Stdio::null())
|
.stdin(Stdio::null())
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
.stderr(Stdio::inherit());
|
.stderr(Stdio::inherit());
|
||||||
|
if show_trace {
|
||||||
|
cmd.arg("--show-trace");
|
||||||
|
};
|
||||||
cmd.output().wrap_err("Error building systems")
|
cmd.output().wrap_err("Error building systems")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue