go-godo / godo

golang build tool in the spirt of rake, gulp
MIT License
536 stars 31 forks source link

typo in readme #36

Closed ypapax closed 8 years ago

ypapax commented 9 years ago

Looks like you have a typo in this block:

p.Task("hello", func(c *Context) {
    // "(none)" is the default value
    msg := c.Args.MayString("(none)", "message", "msg", "m")
    var name string
    if len(c.Args.Leftover() == 1) {
        name = c.Args.Leftover()[0]
    }
    fmt.Println(msg, name)
})

line if len(c.Args.Leftover() == 1) { must be if len(c.Args.Leftover()) == 1 {