Add support for maps.

This commit is contained in:
Alec Thomas
2018-06-13 22:16:43 +10:00
parent 54386f7fa5
commit ecf21e4cc9
7 changed files with 76 additions and 22 deletions
-4
View File
@@ -5,7 +5,6 @@ import (
"fmt"
"go/doc"
"io"
"reflect"
"strings"
)
@@ -197,8 +196,5 @@ func formatFlag(haveShort bool, flag *Flag) string {
if !isBool {
flagString += fmt.Sprintf("=%s", flag.FormatPlaceHolder())
}
if flag.Value.Target.Kind() == reflect.Slice {
flagString += " ..."
}
return flagString
}