From 1378a3625585b9670f1d1e41ac120c727dd4d262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Cuadros?= Date: Sat, 21 Dec 2013 11:32:14 +0100 Subject: [PATCH] Fixes in example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 01766d1..0404755 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ We have only defined one flag for a single command. More documentation about flags is available at https://github.com/spf13/pflag - Import( + import( "github.com/spf13/cobra" "fmt" "strings" @@ -195,7 +195,7 @@ More documentation about flags is available at https://github.com/spf13/pflag }, } - cmdTimes().Flags().IntVarP(&echoTimes, "times", "t", 1, "times to echo the input") + cmdTimes.Flags().IntVarP(&echoTimes, "times", "t", 1, "times to echo the input") var rootCmd = &cobra.Command{Use: "app"} rootCmd.AddCommand(cmdPrint, cmdEcho)