diff --git a/command.go b/command.go index 3ee1a0a9..c5b10945 100644 --- a/command.go +++ b/command.go @@ -969,7 +969,8 @@ func (c *Command) Name() string { if i >= 0 { name = name[:i] } - return name + c.name = name + return c.name } // HasAlias determines if a given string is an alias of the command.