diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-11-13 14:20:26 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-11-13 14:20:26 -0500 |
commit | 1c5168342e5248983d3a7929abaebe16ca3640a3 (patch) | |
tree | 38ba0c3d36c57523610c79dfe2c529fceb58cfdc /parse.c | |
parent | 892c033de018c86951bcbe57a93e462962b019f8 (diff) | |
download | bfs-1c5168342e5248983d3a7929abaebe16ca3640a3.tar.xz |
parse: Don't print warnings if standard in is not a terminal.
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, }; |