make cmd.Run use varargs

This commit is contained in:
Naveen Gogineni
2022-10-10 18:32:56 -04:00
parent adcce134f3
commit 59095aa762
8 changed files with 33 additions and 33 deletions

View File

@@ -43,7 +43,7 @@ func TestCommandFlagParsing(t *testing.T) {
isRoot: true,
}
err := command.Run(cCtx, c.testArgs)
err := command.Run(cCtx, c.testArgs...)
expect(t, err, c.expectedErr)
//expect(t, cCtx.Args().Slice(), c.testArgs)