Add --output=inherit as an alias for --show-output

This commit is contained in:
Tavian Barnes authored and David Peter committed 2022-05-17 22:30:45 +02:00
1 parent dfd1046d63
commit ecee9df575
2 files changed
+2

No files matched your search

+1
View File
@@ -272,6 +272,7 @@ fn build_command() -> Command<'static> {
and apply certain optimizations. To avoid that, consider using \
'--output=pipe'.\n\n\
pipe: Feed the output through a pipe before discarding it.\n\n\
inherit: Don't redirect the output at all (same as '--show-output').\n\n\
<FILE>: Write the output to the given file.",
),
)
+1
View File
@@ -274,6 +274,7 @@ impl Options {
match output {
"null" => CommandOutputPolicy::Discard,
"pipe" => CommandOutputPolicy::Pipe,
"inherit" => CommandOutputPolicy::Forward,
path => CommandOutputPolicy::File(path.into()),
}
} else {