diff options
| author | Amir H. Yeganemehr <yeganemehr@jeyserver.com> | 2023-11-13 14:43:12 +0330 |
|---|---|---|
| committer | Chris Lu <chrislusf@users.noreply.github.com> | 2023-11-13 06:06:45 -0800 |
| commit | b05d682c4819373768f5435b82668d3312cd8752 (patch) | |
| tree | f4a658a8ae036846fcd2db47e722be7e18cbf34c | |
| parent | 27b34f37935fb3eddb9c7759acf397dbae20eb03 (diff) | |
| download | seaweedfs-b05d682c4819373768f5435b82668d3312cd8752.tar.xz seaweedfs-b05d682c4819373768f5435b82668d3312cd8752.zip | |
make help command in shell case insensitive
| -rw-r--r-- | weed/shell/shell_liner.go | 2 |
1 files changed, 1 insertions, 1 deletions
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()) } } |
