Fix: silly syntax fail

This commit is contained in:
kayos@tcp.direct 2022-03-06 12:17:38 -08:00
parent 56d0469d2e
commit 170b05e0e4
No known key found for this signature in database
GPG Key ID: 4B841471B4BEE979
1 changed files with 7 additions and 2 deletions

View File

@ -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