fix: show trace after args

This commit is contained in:
Patrick 2024-12-20 12:51:24 +01:00
parent 85a6a4df38
commit 99cbcc03d9
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F

View file

@ -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")
} }