diff --git a/cobra/cmd/init.go b/cobra/cmd/init.go index 4e7ebdb..149aabe 100644 --- a/cobra/cmd/init.go +++ b/cobra/cmd/init.go @@ -165,7 +165,7 @@ to quickly create a Cobra application.` + "`" + `, // Run: func(cmd *cobra.Command, args []string) { }, } -// Execute adds all child commands to the root command sets flags appropriately. +// Execute adds all child commands to the root command and sets flags appropriately. // This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() { if err := RootCmd.Execute(); err != nil { diff --git a/cobra/cmd/testdata/root.go.golden b/cobra/cmd/testdata/root.go.golden index 0085d5a..ecc8760 100644 --- a/cobra/cmd/testdata/root.go.golden +++ b/cobra/cmd/testdata/root.go.golden @@ -39,7 +39,7 @@ to quickly create a Cobra application.`, // Run: func(cmd *cobra.Command, args []string) { }, } -// Execute adds all child commands to the root command sets flags appropriately. +// Execute adds all child commands to the root command and sets flags appropriately. // This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() { if err := RootCmd.Execute(); err != nil {