Fix new example for v2 branch
This commit is contained in:
parent
83497d2cda
commit
03f77c6e74
22
README.md
22
README.md
@ -480,17 +480,17 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
app := cli.NewApp()
|
app := &cli.App{
|
||||||
|
Flags: []cli.Flag{
|
||||||
app.Flags = []cli.Flag {
|
&cli.StringFlag{
|
||||||
cli.StringFlag{
|
Name: "lang, l",
|
||||||
Name: "lang, l",
|
Value: "english",
|
||||||
Value: "english",
|
Usage: "Language for the greeting",
|
||||||
Usage: "Language for the greeting",
|
},
|
||||||
},
|
&cli.StringFlag{
|
||||||
cli.StringFlag{
|
Name: "config, c",
|
||||||
Name: "config, c",
|
Usage: "Load configuration from `FILE`",
|
||||||
Usage: "Load configuration from `FILE`",
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user