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

2
app.go
View File

@@ -275,7 +275,7 @@ func (a *App) RunContext(ctx context.Context, arguments []string) (err error) {
a.rootCommand = newRootCommand(a)
cCtx.Command = a.rootCommand
return a.rootCommand.Run(cCtx, arguments)
return a.rootCommand.Run(cCtx, arguments...)
}
func (a *App) suggestFlagFromError(err error, command string) (string, error) {