1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00

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

This commit is contained in:
Matt Bell
2014-11-11 16:38:57 -08:00
committed by Juan Batiz-Benet
parent b358bb3ffd
commit f48ce10efb

View File

@ -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