mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-29 16:38:56 +00:00
Add --output=inherit as an alias for --show-output
This commit is contained in:
1 parent
dfd1046d63
commit
ecee9df575
2 files changed
+2
No files matched your search
@@ -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.",
|
||||
),
|
||||
)
|
||||
|
||||
@@ -274,6 +274,7 @@ impl Options {
|
||||
match output {
|
||||
"null" => CommandOutputPolicy::Discard,
|
||||
"pipe" => CommandOutputPolicy::Pipe,
|
||||
"inherit" => CommandOutputPolicy::Forward,
|
||||
path => CommandOutputPolicy::File(path.into()),
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user