Add documentation, remove quotes by default

This commit is contained in:
Jake Champlin
2016-08-30 10:52:24 -04:00
parent e0556cf9e8
commit 7d56512ecc
3 changed files with 44 additions and 2 deletions

View File

@@ -742,7 +742,7 @@ func stringifyFlag(f Flag) string {
helpText := fv.FieldByName("DefaultText")
if helpText.IsValid() && helpText.String() != "" {
needsPlaceholder = val.Kind() != reflect.Bool
defaultValueString = fmt.Sprintf(" (default: %q)", helpText.String())
defaultValueString = fmt.Sprintf(" (default: %s)", helpText.String())
}
if defaultValueString == " (default: )" {