From ecee9df575daa214af18bd9f332ca15fff90846b Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 16 May 2022 16:15:00 -0400 Subject: [PATCH] Add --output=inherit as an alias for --show-output --- src/cli.rs | 1 + src/options.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/cli.rs b/src/cli.rs index 91501ff..7b538d1 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -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\ : Write the output to the given file.", ), ) diff --git a/src/options.rs b/src/options.rs index 167a86a..cf57472 100644 --- a/src/options.rs +++ b/src/options.rs @@ -274,6 +274,7 @@ impl Options { match output { "null" => CommandOutputPolicy::Discard, "pipe" => CommandOutputPolicy::Pipe, + "inherit" => CommandOutputPolicy::Forward, path => CommandOutputPolicy::File(path.into()), } } else {