kataras / rizla

:eyes: Rizla builds, runs and monitors your Go Applications with ease. See https://github.com/kataras/iris-cli for Iris users.
MIT License
190 stars 17 forks source link

About -flag #13

Closed Zeno-Code closed 6 years ago

Zeno-Code commented 6 years ago

func main() {
    host := flag.String("host", "abc.com", "domain")
    flag.Parse()
    fmt.Printf("%#v", *host)
}
`

main -host abcde.com
"abcde.com"

rizla main.go -host abcde.com
"abc.com"

what should I do?
kataras commented 6 years ago

Update with go get -u github.com/kataras/rizla and you should be able to run: rizla main.go -host abcde.com as you requested

Zeno-Code commented 6 years ago

It worked Very helpful when developing Thanks

Zeno-Code commented 6 years ago

A new problem @kataras

Multi parameter

rizla main.go -a abc -b cde

missing a

kataras commented 6 years ago

Thanks @Zeno-Code , fixed :)