Support for shortnames
This commit is contained in:
parent
6fa7cfa8a6
commit
bdb9c5ab61
2
cli.go
2
cli.go
@ -20,7 +20,7 @@ func Run(args []string) {
|
|||||||
if len(args) > 1 {
|
if len(args) > 1 {
|
||||||
name := args[1]
|
name := args[1]
|
||||||
for _, c := range append(Commands, HelpCommand) {
|
for _, c := range append(Commands, HelpCommand) {
|
||||||
if c.Name == name {
|
if c.Name == name || c.ShortName == name {
|
||||||
c.Action(name)
|
c.Action(name)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user