Skip to content

Commit 06ea186

Browse files
committed
fix(param/ArgsToCmdResults): use input cmd instead of default one
1 parent 5a6ea9f commit 06ea186

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/param/cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func ArgsToCmdResults(cmd *goNixArgParser.Command, args []string) (results []*go
228228

229229
// append config and re-parse
230230
configs := []string{}
231-
groupSeps := cliCmd.Options().GroupSeps()[0]
231+
groupSeps := cmd.Options().GroupSeps()[0]
232232
foundConfig := false
233233
for i := range results {
234234
configs = append(configs, groupSeps)
@@ -262,7 +262,7 @@ func ArgsToCmdResults(cmd *goNixArgParser.Command, args []string) (results []*go
262262

263263
if foundConfig {
264264
configs = configs[1:]
265-
results = cliCmd.ParseGroups(args, configs)
265+
results = cmd.ParseGroups(args, configs)
266266
for i := range results {
267267
undefs := results[i].GetUndefs()
268268
if len(undefs) > 0 {

0 commit comments

Comments
 (0)