1
0

feat: make license flag case insensitive

This commit is contained in:
Wiktor Zykubek 2024-12-28 02:16:58 +01:00
parent c27eed3202
commit 8a6539bcf8
Signed by: wzykubek
GPG Key ID: 2221881F957D89B9

View File

@ -88,6 +88,8 @@ func main() {
ListTemplates := flag.Bool("list", false, "List available licenses") ListTemplates := flag.Bool("list", false, "List available licenses")
flag.Parse() flag.Parse()
*License = strings.ToUpper(*License)
if *ListTemplates { if *ListTemplates {
listTemplates() listTemplates()
os.Exit(0) os.Exit(0)