From 2cf10b9a4b0d9d99cdbb3d5eb0381860030a106d Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Sat, 28 Dec 2024 02:16:58 +0100 Subject: [PATCH] feat: make license flag case insensitive --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 8b3aef8..4a3aed2 100644 --- a/main.go +++ b/main.go @@ -88,6 +88,8 @@ func main() { ListTemplates := flag.Bool("list", false, "List available licenses") flag.Parse() + *License = strings.ToUpper(*License) + if *ListTemplates { listTemplates() os.Exit(0)