Update README.md

This commit is contained in:
Alexander 2013-07-23 17:16:08 +08:00
parent 30ef543888
commit a29aaf2879

View File

@ -131,6 +131,10 @@ app.Flags = []cli.Flag {
cli.StringFlag{"lang", "english", "language for the greeting"},
}
app.Action = func(c *cli.Context) {
name := "someone"
if len(c.Args()) > 0 {
name = c.Args()[0]
}
if c.String("lang") == "spanish" {
println("Hola", c.Args()[0])
} else {