From f48ce10efb23f1671b2c994ebefddc7b7727f0d6 Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Tue, 11 Nov 2014 16:38:57 -0800 Subject: [PATCH] commands/cli: Added comment to explain multiple root support in Parse --- commands/cli/parse.go | 2 ++ 1 file changed, 2 insertions(+) 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