From 03f77c6e740501d14f0596a9a0beadffb23a89a0 Mon Sep 17 00:00:00 2001 From: Jesse Szwedko Date: Sat, 29 Oct 2016 14:33:41 -0700 Subject: [PATCH] Fix new example for v2 branch --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index d82a8cd..d46de8d 100644 --- a/README.md +++ b/README.md @@ -480,17 +480,17 @@ import ( ) func main() { - app := cli.NewApp() - - app.Flags = []cli.Flag { - cli.StringFlag{ - Name: "lang, l", - Value: "english", - Usage: "Language for the greeting", - }, - cli.StringFlag{ - Name: "config, c", - Usage: "Load configuration from `FILE`", + app := &cli.App{ + Flags: []cli.Flag{ + &cli.StringFlag{ + Name: "lang, l", + Value: "english", + Usage: "Language for the greeting", + }, + &cli.StringFlag{ + Name: "config, c", + Usage: "Load configuration from `FILE`", + }, }, }