1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-10 14:34:24 +08:00

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

License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
This commit is contained in:
rht
2015-11-25 16:09:11 +07:00
committed by Jeromy
parent 743f3edcbb
commit bf26b59c37
4 changed files with 6 additions and 6 deletions

View File

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

View File

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