Skip to content

Commit

Permalink
only turn keys to lowercase not values
Browse files Browse the repository at this point in the history
  • Loading branch information
mosajjal committed Aug 15, 2022
1 parent 9fbf18f commit 7ebb729
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ebb729

Please sign in to comment.