Skip to content

Commit daee8ec

Browse files
committed
Fix list description order
1 parent fb88e80 commit daee8ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/wallet/commands.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ func (cs *CommandSet) List(pretty bool) []string {
7676

7777
// If pretty output add descriptions
7878
o := make([]string, 0)
79-
for i, name := range names {
80-
o = append(o, fmt.Sprintf("%*s - %s", -longest, name, cs.Commands[i].Description))
79+
for _, name := range names {
80+
o = append(o, fmt.Sprintf("%*s - %s", -longest, name, cs.Name2Command[name].Description))
8181
}
8282

8383
return o

0 commit comments

Comments
 (0)