提交 068e10cc 作者: Matt Bell 提交者: Juan Batiz-Benet

commands/cli: Better comment for parsePath

上级 958e524c
......@@ -55,7 +55,8 @@ func Parse(input []string, roots ...*cmds.Command) (cmds.Request, *cmds.Command,
return req, root, nil
}
// parsePath gets the command path from the command line input
// parsePath separates the command path and the opts and args from a command string
// returns command path slice, rest slice, and the corresponding *cmd.Command
func parsePath(input []string, root *cmds.Command) ([]string, []string, *cmds.Command) {
cmd := root
i := 0
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论