From 7ebb729d4655cd4f9ba85c800724f3c3313d049b Mon Sep 17 00:00:00 2001 From: Alireza Mosajjal Date: Mon, 15 Aug 2022 18:10:10 +1200 Subject: [PATCH] only turn keys to lowercase not values --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 4a65d4f..9495a8a 100644 --- a/main.go +++ b/main.go @@ -57,7 +57,9 @@ func main() { // convert all argv to lowercase for i := range os.Args { - os.Args[i] = strings.ToLower(os.Args[i]) + if strings.HasPrefix(os.Args[i], "--") { + os.Args[i] = strings.ToLower(os.Args[i]) + } } // process and handle flags