2021-07-27 13:25:28 +00:00
|
|
|
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 13:25:28 +00:00
|
|
|
|
2021-07-27 19:46:02 +00:00
|
|
|
// FlagVeryVerbose enables very verbose mode, which is useful when debugging
|
2021-07-27 13:25:28 +00:00
|
|
|
// 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{
|
2021-07-27 13:25:28 +00:00
|
|
|
Name: "vv",
|
2021-07-27 19:46:02 +00:00
|
|
|
Usage: "enables very verbose mode, useful for debugging the CLI",
|
|
|
|
Destination: &IsVeryVerbose,
|
2021-07-27 13:25:28 +00:00
|
|
|
}
|