mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Fix help display with -h.
This commit is contained in:
@@ -34,7 +34,7 @@ func main() {
|
||||
}
|
||||
|
||||
// parse the flags - both the program's flags and the completion flags
|
||||
flag.Parse()
|
||||
flag.CommandLine.Parse([]string{})
|
||||
|
||||
// run the completion, in case that the completion was invoked
|
||||
// and ran as a completion script or handled a flag that passed
|
||||
|
||||
@@ -88,7 +88,6 @@ func NewCmdOdo(name, fullName string) *cobra.Command {
|
||||
verbosity.Usage += ". Level varies from 0 to 9 (default 0)."
|
||||
|
||||
rootCmd.SetUsageTemplate(rootUsageTemplate)
|
||||
flag.CommandLine.Parse([]string{})
|
||||
|
||||
rootCmd.AddCommand(
|
||||
application.NewCmdApplication(),
|
||||
|
||||
Reference in New Issue
Block a user