Skip to content

Commit

Permalink
only turn keys to lowercase not values
Browse files Browse the repository at this point in the history
mosajjal committed Aug 15, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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

0 comments on commit 7ebb729

Please sign in to comment.