Closed Xophmeister closed 1 year ago
clap-verbosity-flag
also adds a --quiet
option which, for our purposes, is both unnecessary and its short option conflicts with our short option for --query
. It's very simple to roll our own...
env_logger
doesn't allow both (1) and (2) simultaneously, so I've stuck with (1)...
Currently the logging level is exposed through the default
env_logger
environment variableRUST_LOG
, which has poor discoverability. I propose the following:Expose the logging level through a CLI "verbosity" flag. The "usual" way of doing this is with
-v
, where morev
s means more verbosity. (It looks like there is an off-the-shelf option for this, for clap.)Rather than
RUST_LOG
, we should useTOPIARY_LOG
and document this better in theREADME
.:bulb: This issue depends on #583.