foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.33k stars 1.76k forks source link

feat(`common::shell`): add global verbosity level (`-vvv`) flag replacing `--verbose` #9273

Closed zerosnacks closed 1 week ago

zerosnacks commented 2 weeks ago

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

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.