summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-11-13 14:20:26 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-11-13 14:20:26 -0500
commit1c5168342e5248983d3a7929abaebe16ca3640a3 (patch)
tree38ba0c3d36c57523610c79dfe2c529fceb58cfdc
parent892c033de018c86951bcbe57a93e462962b019f8 (diff)
downloadbfs-1c5168342e5248983d3a7929abaebe16ca3640a3.tar.xz
parse: Don't print warnings if standard in is not a terminal.
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index ca8a00f..c7092fe 100644
--- a/parse.c
+++ b/parse.c
@@ -2279,7 +2279,7 @@ struct cmdline *parse_cmdline(int argc, char *argv[]) {
.command = argv[0],
.roots_tail = &cmdline->roots,
.implicit_print = true,
- .warn = true,
+ .warn = isatty(STDIN_FILENO),
.non_option_seen = false,
.just_info = false,
};