cli: move debug flag to options package

This commit is contained in:
Anna Shaleva 2022-10-03 15:05:40 +03:00
parent 37571162a0
commit 5698ce03be
2 changed files with 7 additions and 1 deletions

View file

@ -47,7 +47,7 @@ func NewCommands() []cli.Command {
cfgFlags = append(cfgFlags, options.Network...)
var cfgWithCountFlags = make([]cli.Flag, len(cfgFlags))
copy(cfgWithCountFlags, cfgFlags)
cfgFlags = append(cfgFlags, cli.BoolFlag{Name: "debug, d", Usage: "enable debug logging (LOTS of output)"})
cfgFlags = append(cfgFlags, options.Debug)
cfgWithCountFlags = append(cfgWithCountFlags,
cli.UintFlag{