Commit 6d8847dd authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

commands: Fixed arg validation bug

parent 0e406afe
...@@ -179,7 +179,7 @@ func (c *Command) CheckArguments(req Request) error { ...@@ -179,7 +179,7 @@ func (c *Command) CheckArguments(req Request) error {
// any additional values are for the variadic arg definition // any additional values are for the variadic arg definition
if argDef.Variadic && j < len(args)-1 { if argDef.Variadic && j < len(args)-1 {
for _, val := range args[j+1:] { for _, val := range args[j:] {
err := checkArgValue(val, argDef) err := checkArgValue(val, argDef)
if err != nil { if err != nil {
return err return err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment