simplify
This commit is contained in:
parent
d22ce15be8
commit
5266dca432
@ -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")
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user