$ redis-cli --help | less # results in no bytes
But if I'm invoking a command specifically to read its help docs, then it should be printed to stdout. Take the following example:
$ git --help | grep pullIn this case I certainly want the help docs; I asked for them explicitly with the --help option so I could grep for the specific option I was looking for. When asking explicitly for help docs they should be printed to stdout.
Please read this blog entry if you have further questions.
Workaround:
$ redis-cli --help 2>&1 | less
Comment From: badboy
Shorter:
redis-cli --help |& less
Care to implement?
Comment From: yoav-steinberg
Handled in #9124. Closing.