From fe46976256aa3a5cac9baf745ac1debcb49d00c0 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Mon, 25 Nov 2024 15:17:02 -0500 Subject: fix: enhance readme, and update notice duration (#12) * Move main.go to root for easy go install ... * Better README * elongate notice duration --- flags.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 flags.go (limited to 'flags.go') diff --git a/flags.go b/flags.go new file mode 100644 index 0000000..660c053 --- /dev/null +++ b/flags.go @@ -0,0 +1,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 + }, +} -- cgit v1.2.3