diff --git a/root.go b/root.go index 6d597d1..4f1c992 100644 --- a/root.go +++ b/root.go @@ -81,7 +81,7 @@ func init() { // 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") } // initConfig reads in config file and ENV variables if set. diff --git a/version.go b/version.go index 67466c1..97bcd30 100644 --- a/version.go +++ b/version.go @@ -24,13 +24,8 @@ import ( // versionCmd represents the version command var versionCmd = &cobra.Command{ Use: "version", - Short: "A brief description of your command", - Long: `A longer description that spans multiple lines and likely contains examples -and usage of using your command. For example: - -Cobra is a CLI library for Go that empowers applications. -This application is a tool to generate the needed files -to quickly create a Cobra application.`, + Short: "Show the version of the program", + Long: `Show the version of the program`, Run: func(cmd *cobra.Command, args []string) { fmt.Printf("Version: %s, Built: %s", version.Version, version.BuildTime) },