global -q is persistent.

This commit is contained in:
fiatjaf 2024-07-13 09:42:43 -03:00
parent e18e8c00e7
commit 30ca5776c5

View File

@ -30,6 +30,7 @@ var app = &cli.Command{
Name: "quiet", Name: "quiet",
Usage: "do not print logs and info messages to stderr, use -qq to also not print anything to stdout", Usage: "do not print logs and info messages to stderr, use -qq to also not print anything to stdout",
Aliases: []string{"q"}, Aliases: []string{"q"},
Persistent: true,
Action: func(ctx context.Context, c *cli.Command, b bool) error { Action: func(ctx context.Context, c *cli.Command, b bool) error {
q := c.Count("quiet") q := c.Count("quiet")
if q >= 1 { if q >= 1 {