make help command in shell case insensitive

This commit is contained in:
Amir H. Yeganemehr 2023-11-13 14:43:12 +03:30 committed by Chris Lu
parent 27b34f3793
commit b05d682c48

View file

@ -170,7 +170,7 @@ func printHelp(cmds []string) {
cmd := strings.ToLower(args[0])
for _, c := range Commands {
if c.Name() == cmd {
if strings.ToLower(c.Name()) == cmd {
fmt.Printf(" %s\t# %s\n", c.Name(), c.Help())
}
}