Closed casey closed 4 years ago
There are lots of places which do something like the following:
if !options.quiet { errln!(env, "Something!")?; }
It might be better to just suppress all output to stderr when --quiet is passed.
--quiet
This can be adding a quiet flag to OutputStream, which is set in Env::run with something like the following:
quiet
OutputStream
Env::run
if args.options().quiet { self.err.set_quiet(true); }
When OutputStream::quiet is true, all writes to that output stream are silently dropped.
OutputStream::quiet
true
Todo:
if quiet
There are lots of places which do something like the following:
It might be better to just suppress all output to stderr when
--quiet
is passed.This can be adding a
quiet
flag toOutputStream
, which is set inEnv::run
with something like the following:When
OutputStream::quiet
istrue
, all writes to that output stream are silently dropped.Todo:
quiet
flag onOutputStream
suppresses output--quiet
flag suppresses program outputif quiet
instances