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 6e7723c commit 97ced9fCopy full SHA for 97ced9f
src/param/cli.go
@@ -265,7 +265,7 @@ func ArgsToCmdResults(cmd *goNixArgParser.Command, args []string) (results []*go
265
}
266
267
// append config and re-parse
268
- configs := []string{}
+ configs := make([]string, 0, len(results))
269
groupSeps := cmd.Options().GroupSeps()[0]
270
hasConfig := false
271
var stdinConfigArgs []string
@@ -292,6 +292,9 @@ func ArgsToCmdResults(cmd *goNixArgParser.Command, args []string) (results []*go
292
stdinConfigArgs = configArgs
293
294
295
+ if len(configArgs) == 0 {
296
+ continue
297
+ }
298
299
hasConfig = true
300
configs = append(configs, configArgs...)
0 commit comments