summaryrefslogtreecommitdiff
path: root/flags.go
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-11-25 15:17:02 -0500
committerGitHub <noreply@github.com>2024-11-25 15:17:02 -0500
commitfe46976256aa3a5cac9baf745ac1debcb49d00c0 (patch)
treefa093a584b6990827fbb1bed37feccc3958ab71f /flags.go
parent6981c08b60cccc7454038bb21391bd585a133684 (diff)
fix: enhance readme, and update notice duration (#12)
* Move main.go to root for easy go install ... * Better README * elongate notice duration
Diffstat (limited to 'flags.go')
-rw-r--r--flags.go16
1 files changed, 16 insertions, 0 deletions
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
+ },
+}