Commit cd35310e authored by rht's avatar rht Committed by Jeromy

s/\[0:/\[:/g

License: MIT
Signed-off-by: default avatarrht <rhtbot@gmail.com>
parent 08b4e157
......@@ -187,7 +187,7 @@ func parseOpts(args []string, root *cmds.Command) (
}
}
var end bool
end, err = parseFlag(arg[0:1], rest, mustUse)
end, err = parseFlag(arg[:1], rest, mustUse)
if err != nil {
return
}
......
......@@ -156,7 +156,7 @@ func (c *Command) Resolve(pth []string) ([]*Command, error) {
cmd = cmd.Subcommand(name)
if cmd == nil {
pathS := path.Join(pth[0:i])
pathS := path.Join(pth[:i])
return nil, fmt.Errorf("Undefined command: '%s'", pathS)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment