mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-14 15:58:52 +01:00
make help command in shell case insensitive
This commit is contained in:
1 parent
27b34f3793
commit
b05d682c48
1 file changed
+1
-1
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user