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 {
|
||||
Command::new("nom")
|
||||
};
|
||||
if show_trace {
|
||||
cmd.arg("--show-trace");
|
||||
};
|
||||
let cmd = cmd
|
||||
.current_dir(dir)
|
||||
.arg("build")
|
||||
|
@ -55,6 +52,9 @@ pub fn build(systems: &[String], show_trace: bool, minimal: bool) -> Result<Outp
|
|||
.stdin(Stdio::null())
|
||||
.stdout(Stdio::piped())
|
||||
.stderr(Stdio::inherit());
|
||||
if show_trace {
|
||||
cmd.arg("--show-trace");
|
||||
};
|
||||
cmd.output().wrap_err("Error building systems")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue