In line with the familiar (-v ,-vv, -vvv, etc..) I think it makes sense replace the current global --verbose option in favor of one specified by a verbosity level.
Defines an OutputMode w/ Normal and Quiet, same behavior
Fixes missing debug fields
Fixes duplicate missed --json field
Removes some minor instances of -v already being in use in favor of the global flag: this is a breaking change
Output:
Display options:
--color <COLOR>
The color of the log messages
Possible values:
- auto: Intelligently guess whether to use color output (default)
- always: Force color output
- never: Force disable color output
--json
Format log messages as JSON
-q, --quiet
Do not print log messages
-v, --verbosity...
Verbosity level of the log messages.
Pass multiple times to increase the verbosity (e.g. -v, -vv, -vvv).
Depending on the context the verbosity levels have different meanings.
Motivation
In line with the familiar (
-v
,-vv
,-vvv
, etc..) I think it makes sense replace the current global--verbose
option in favor of one specified by a verbosity level.Related: https://github.com/foundry-rs/foundry/issues/8794 Related: https://github.com/foundry-rs/foundry/issues/3704
Solution
verbose
modeOutputMode
w/Normal
andQuiet
, same behavior--json
field-v
already being in use in favor of the global flag: this is a breaking changeOutput: