Browse Source

make help command in shell case insensitive

pull/5003/head
Amir H. Yeganemehr 1 year ago
committed by Chris Lu
parent
commit
b05d682c48
  1. 2
      weed/shell/shell_liner.go

2
weed/shell/shell_liner.go

@ -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())
}
}

Loading…
Cancel
Save