diff --git a/tpl/main.go b/tpl/main.go index 009524c..773ccdd 100644 --- a/tpl/main.go +++ b/tpl/main.go @@ -87,7 +87,7 @@ func init() { {{ end }} // Cobra also supports local flags, which will only run // when this action is called directly. - rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") + rootCmd.Flags().BoolP("toggle", "t", false, "help message for toggle") } {{ if .Viper -}} @@ -157,7 +157,7 @@ func init() { // Cobra supports local flags which will only run when this command // is called directly, e.g.: - // {{ .CmdName }}Cmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") + // {{ .CmdName }}Cmd.Flags().BoolP("toggle", "t", false, "help message for toggle") } `) }