From 54bea781d96561319974c69f8cd35e52541e90ca Mon Sep 17 00:00:00 2001 From: Quantomic Date: Sun, 9 Jul 2017 22:24:52 +0200 Subject: [PATCH] Deletes the general 'too few arguments' check. License: MIT Signed-off-by: Mateja Milosevic --- commands/http/parse.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/commands/http/parse.go b/commands/http/parse.go index ac237cef2..41dabe637 100644 --- a/commands/http/parse.go +++ b/commands/http/parse.go @@ -64,11 +64,6 @@ func Parse(r *http.Request, root *cmds.Command) (cmds.Request, error) { args := make([]string, valCount) - //skip further checks if we have fewer provided arguments than minimum required - if valCount < numRequired { - return nil, fmt.Errorf("Needed at least %v argument(s), got %v", numRequired, valCount) - } - valIndex := 0 requiredFile := "" for _, argDef := range cmd.Arguments {