From b05d682c4819373768f5435b82668d3312cd8752 Mon Sep 17 00:00:00 2001 From: "Amir H. Yeganemehr" Date: Mon, 13 Nov 2023 14:43:12 +0330 Subject: [PATCH] make help command in shell case insensitive --- weed/shell/shell_liner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/shell/shell_liner.go b/weed/shell/shell_liner.go index 3e55cc88e..28672c17c 100644 --- a/weed/shell/shell_liner.go +++ b/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()) } }