@cryptotaxi247 / kubo / commits / f48ce10ef

commands/cli: Added comment to explain multiple root support in Parse

Matt Bell committed Nov 11, 2014 at 16:38 UTC f48ce10efb23f1671b2c994ebefddc7b7727f0d6
1 file changed +2
commands/cli/parse.go
+2
@@ -11,6 +11,8 @@ import (
11
12 // Parse parses the input commandline string (cmd, flags, and args).
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 func Parse(input []string, roots ...*cmds.Command) (cmds.Request, *cmds.Command, *cmds.Command, []string, error) {
17 var root, cmd *cmds.Command
18 var path, stringArgs []string