1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package main import "github.com/urfave/cli/v2" const ( flagLogfile = "logfile" ) var AppFlags []cli.Flag = []cli.Flag{ &cli.StringFlag{ Name: flagLogfile, Aliases: []string{"l"}, Usage: "Log file", Value: "/dev/null", // Don't log by default }, }