made non-terminal default to quiet
This commit is contained in:
parent
ca75ff1260
commit
27abd81bf8
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ use std::{
|
|||
stdin,
|
||||
stdout,
|
||||
|
||||
IsTerminal,
|
||||
Write
|
||||
},
|
||||
process::exit
|
||||
|
@ -42,7 +43,7 @@ fn main() {
|
|||
}
|
||||
|
||||
let mut context = util::build_context(&mut args);
|
||||
let quiet = args.contains(flag::QUIET);
|
||||
let quiet = args.contains(flag::QUIET) || !stdout().is_terminal();
|
||||
|
||||
// collect args and evaluate if present
|
||||
let expressions = args.finish();
|
||||
|
|
Loading…
Reference in a new issue