This commit is contained in:
Kovid Goyal 2022-08-22 18:38:51 +05:30
parent 7457746d65
commit 68d589826a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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