We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a0355d commit ab0d530Copy full SHA for ab0d530
builder.go
@@ -146,7 +146,8 @@ func (c CommandInfo) Subcmd(sc CommandInfo) CommandInfo {
146
panic(errMixingPosArgsAndSubcmds)
147
}
148
149
- sc.Path = append([]string(nil), c.Path...)
+ sc.Path = make([]string, len(c.Path))
150
+ copy(sc.Path, c.Path)
151
sc.Path = append(sc.Path, sc.Name)
152
153
c.Subcmds = append(c.Subcmds, sc)
0 commit comments