This commit is contained in:
Kovid Goyal
2022-08-22 18:38:51 +05:30
parent 7457746d65
commit 68d589826a

View File

@@ -383,7 +383,6 @@ func show_usage(cmd *cobra.Command, use_pager bool) error {
fmt.Fprint(&output, ", ", opt_fmt("-"+flag.Shorthand))
}
defval := ""
fmt.Println(flag.Value.Type())
switch flag.Value.Type() {
default:
if flag.DefValue != "" {