Skip to content

Commit

Permalink
Add --output=inherit as an alias for --show-output
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed May 16, 2022
1 parent 56d056d commit 419d5bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,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.",
),
)
Expand Down
1 change: 1 addition & 0 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ impl Options {
match output {
"null" => CommandOutputPolicy::Discard,
"pipe" => CommandOutputPolicy::Pipe,
"inherit" => CommandOutputPolicy::Forward,
path => CommandOutputPolicy::File(path.into()),
}
} else {
Expand Down

0 comments on commit 419d5bd

Please sign in to comment.