From dfd1046d63950c761c2a6932efa9ce22f332d291 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 16 May 2022 16:12:03 -0400 Subject: [PATCH] Clarify --output's help text --- src/cli.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 8acd272..91501ff 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -266,10 +266,12 @@ fn build_command() -> Command<'static> { .takes_value(true) .value_name("WHERE") .help( - "Control where the output of the benchmark is redirected.\n\n \ - null: Redirect output to /dev/null (the default).\n\n \ - pipe: Feed the output through a pipe before discarding it.\n \ - Useful if the benchmark special-cases /dev/null.\n\n \ + "Control where the output of the benchmark is redirected. can be:\n\n\ + null: Redirect output to /dev/null (the default). \ + Note that some programs like 'grep' detect when standard output is /dev/null \ + 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\ : Write the output to the given file.", ), )