From 170b05e0e428b37702040d6b0aa17c8c79b763b8 Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Sun, 6 Mar 2022 12:17:38 -0800 Subject: [PATCH] Fix: silly syntax fail --- config/arguments.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/config/arguments.go b/config/arguments.go index 45e2a6d..33d8b60 100644 --- a/config/arguments.go +++ b/config/arguments.go @@ -15,6 +15,11 @@ func printUsage() { os.Exit(0) } +var ( + forceDebug = false + forceTrace = false +) + // TODO: should probably just make a proper CLI with flags or something func argParse() { for i, arg := range os.Args { @@ -23,9 +28,9 @@ func argParse() { printUsage() case "--genconfig": GenConfig = true - case "--debug", "-v", + case "--debug", "-v": forceDebug = true - case "--trace", "-vv", + case "--trace", "-vv": forceTrace = true case "--nocolor": noColorForce = true