mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 01:15:35 +08:00
make help command in shell case insensitive
This commit is contained in:

committed by
Chris Lu

parent
27b34f3793
commit
b05d682c48
@@ -170,7 +170,7 @@ func printHelp(cmds []string) {
|
|||||||
cmd := strings.ToLower(args[0])
|
cmd := strings.ToLower(args[0])
|
||||||
|
|
||||||
for _, c := range Commands {
|
for _, c := range Commands {
|
||||||
if c.Name() == cmd {
|
if strings.ToLower(c.Name()) == cmd {
|
||||||
fmt.Printf(" %s\t# %s\n", c.Name(), c.Help())
|
fmt.Printf(" %s\t# %s\n", c.Name(), c.Help())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user