summaryrefslogtreecommitdiff
path: root/flags.go
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-11-25 16:45:33 -0500
committerGitHub <noreply@github.com>2024-11-25 16:45:33 -0500
commit821c198fe6700a9e9e9eb07ab6922e7bde7f2bfb (patch)
tree33f696ab2dfa433bc1513fd44b313419b74cc812 /flags.go
parentbad902e67b98a2630ff4396f846a223e3eed6a7a (diff)
Accept initial color using -c flag (#14)
Diffstat (limited to 'flags.go')
-rw-r--r--flags.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/flags.go b/flags.go
index 660c053..57607de 100644
--- a/flags.go
+++ b/flags.go
@@ -13,4 +13,10 @@ var AppFlags []cli.Flag = []cli.Flag{
Usage: "Log file",
Value: "/dev/null", // Don't log by default
},
+ &cli.StringFlag{
+ Name: "color",
+ Aliases: []string{"c"},
+ Usage: "Initial color",
+ Value: "",
+ },
}