Hide the default completion command

This commit is contained in:
Kovid Goyal 2022-08-17 10:55:46 +05:30
parent 3a87cfce3e
commit 82410c58ed
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -397,4 +397,5 @@ func Init(root *cobra.Command) {
root.SetUsageFunc(show_usage)
root.SetHelpFunc(show_help)
root.SetHelpCommand(&cobra.Command{Hidden: true})
root.CompletionOptions.DisableDefaultCmd = true
}