From 71ff571ecfa78568782837ecb4c5662ad5428b6f Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Mon, 20 Oct 2014 17:02:06 -0700 Subject: [PATCH] commands/cli: Made Parse return component fields instead of a Request --- commands/cli/parse.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/cli/parse.go b/commands/cli/parse.go index a953d0c5e..5f0b2d795 100644 --- a/commands/cli/parse.go +++ b/commands/cli/parse.go @@ -9,14 +9,14 @@ import ( // Parse parses the input commandline string (cmd, flags, and args). // returns the corresponding command Request object. -func Parse(input []string, root *commands.Command) (commands.Request, error) { +func Parse(input []string, root *commands.Command) ([]string, map[string]interface{}, []string, error) { path, input := parsePath(input, root) opts, args, err := parseOptions(input) if err != nil { - return nil, err + return nil, nil, nil, err } - return commands.NewRequest(path, opts, args), nil + return path, opts, args, nil } // parsePath gets the command path from the command line input