lotus/cli/util/verbose.go

17 lines
544 B
Go
Raw Normal View History

package cliutil
import "github.com/urfave/cli/v2"
2021-07-27 19:46:02 +00:00
// IsVeryVerbose is a global var signalling if the CLI is running in very
// verbose mode or not (default: false).
var IsVeryVerbose bool
2021-07-27 19:46:02 +00:00
// FlagVeryVerbose enables very verbose mode, which is useful when debugging
// the CLI itself. It should be included as a flag on the top-level command
// (e.g. lotus -vv, lotus-miner -vv).
2021-07-27 19:46:02 +00:00
var FlagVeryVerbose = &cli.BoolFlag{
Name: "vv",
2021-07-27 19:46:02 +00:00
Usage: "enables very verbose mode, useful for debugging the CLI",
Destination: &IsVeryVerbose,
}