summaryrefslogtreecommitdiffstats
path: root/programs/lz4cli.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2019-04-22 00:01:03 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2019-04-22 00:01:03 (GMT)
commit22fae16c6f4c4f118e93468ede884295d365fcef (patch)
tree417e2dfd0cb38d28afb07ceb8320ba484f412e2f /programs/lz4cli.c
parent467e352de929fa664af03ece065c89e9997d1bf1 (diff)
downloadlz4-22fae16c6f4c4f118e93468ede884295d365fcef.zip
lz4-22fae16c6f4c4f118e93468ede884295d365fcef.tar.gz
lz4-22fae16c6f4c4f118e93468ede884295d365fcef.tar.bz2
ensure tests work when `stdout` is not the console
ensure this case is continuously tested on travis. Update documentation on implicit output, invite to not rely on implicit output in scripts.
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r--programs/lz4cli.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c
index 279aaf1..82f2fac 100644
--- a/programs/lz4cli.c
+++ b/programs/lz4cli.c
@@ -655,8 +655,9 @@ int main(int argc, const char** argv)
if (!IS_CONSOLE(stdout)) {
/* Default to stdout whenever stdout is not the console.
- * Note : this policy is likely to change in the future, don't rely on it !
- * prefer using an explicit `-c` flag */
+ * Note : this policy may change in the future, therefore don't rely on it !
+ * To ensure `stdout` is explicitly selected, use `-c` command flag.
+ * Conversely, to ensure output will not become `stdout`, use `-m` command flag */
DISPLAYLEVEL(1, "Warning : using stdout as default output. Do not rely on this behavior: use explicit `-c` instead ! \n");
output_filename=stdoutmark;
break;