diff --git a/commands/cli/parse.go b/commands/cli/parse.go index 982691a80..3a45e3f81 100644 --- a/commands/cli/parse.go +++ b/commands/cli/parse.go @@ -11,6 +11,8 @@ import ( // Parse parses the input commandline string (cmd, flags, and args). // returns the corresponding command Request object. +// Multiple root commands are supported: +// Parse will search each root to find the one that best matches the requested subcommand. func Parse(input []string, roots ...*cmds.Command) (cmds.Request, *cmds.Command, *cmds.Command, []string, error) { var root, cmd *cmds.Command var path, stringArgs []string