From 88e482c58270233f4b40e9dfbf651c59b594feb6 Mon Sep 17 00:00:00 2001 From: spf13 Date: Sun, 29 Sep 2013 01:56:04 -0400 Subject: [PATCH] Update read me example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b273a77a..8be3cee8 100644 --- a/README.md +++ b/README.md @@ -120,9 +120,9 @@ More documentation about flags is available at https://github.com/spf13/pflag } - cmdTimes().IntVarP(&echoTimes, "times", "t", 1, "times to echo the input") + cmdTimes().Flags().IntVarP(&echoTimes, "times", "t", 1, "times to echo the input") - var commander = cobra.Commander() + var commander = cobra.NewCommander() commander.SetName("CobraExample") commander.AddCommand(cmdPrint, cmdEcho) cmdEcho.AddCommand(cmdTimes)