This commit is contained in:
abs3nt 2023-02-27 23:13:56 -08:00
parent d22ce15be8
commit 5266dca432

View File

@ -13,7 +13,7 @@ var (
from string from string
to string to string
rootCmd = &cobra.Command{ rootCmd = &cobra.Command{
Use: "converter", Use: "converter FROM TO VALUE",
Short: "A brief description of your application", Short: "A brief description of your application",
Long: `A longer description that spans multiple lines and likely contains Long: `A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example: examples and usage of using your application. For example:
@ -55,3 +55,8 @@ func Execute() {
os.Exit(1) os.Exit(1)
} }
} }
func init() {
rootCmd.InitDefaultHelpFlag()
rootCmd.Flags().MarkHidden("help")
}