@cryptotaxi247 / kubo / commits / e41f861f8

commands/cli: Added some TODOs to Parse

Matt Bell committed Nov 12, 2014 at 16:59 UTC e41f861f8ac1d2e717502ae196c8aa5f0a89cbc7
1 file changed +2
commands/cli/parse.go
+2
@@ -13,6 +13,8 @@ import (
13 // returns the corresponding command Request object.
14 // Multiple root commands are supported:
15 // Parse will search each root to find the one that best matches the requested subcommand.
16 +// TODO: get rid of extraneous return values (e.g. we ended up not needing the root value anymore)
17 +// TODO: get rid of multiple-root support, we should only need one now
18 func Parse(input []string, roots ...*cmds.Command) (cmds.Request, *cmds.Command, *cmds.Command, []string, error) {
19 var root, cmd *cmds.Command
20 var path, stringArgs []string