mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-11 09:58:49 +00:00
global -q is persistent.
This commit is contained in:
1
main.go
1
main.go
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user