We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e330487 commit ba08ebeCopy full SHA for ba08ebe
1 file changed
docs.go
@@ -420,8 +420,8 @@ func (tt tabularTemplate) PrepareFlags(flags []cli.Flag) []cliTabularFlagTemplat
420
Type: flag.TypeName(),
421
}
422
423
- if boolFlag, isBool := appFlag.(*cli.BoolFlag); isBool {
424
- f.Default = strconv.FormatBool(boolFlag.Value)
+ if boolFlag, isBool := appFlag.(*cli.BoolFlag); isBool && defaultText == "" {
+ f.Default = fmt.Sprintf("`%s`", strconv.FormatBool(boolFlag.Value))
425
426
427
for i, name := range appFlag.Names() {
0 commit comments