summaryrefslogtreecommitdiff
path: root/flags.go
diff options
context:
space:
mode:
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
+ },
+}