Browse Source

fix fmt

Signed-off-by: B1F030 <b1fzhang@gmail.com>
pull/14420/head
B1F030 4 months ago
parent
commit
3648386345
  1. 2
      util/documentcli/documentcli.go

2
util/documentcli/documentcli.go

@ -75,7 +75,7 @@ func createFlagRow(flag *kingpin.FlagModel) []string {
name = fmt.Sprintf(`<code class="text-nowrap">-%c</code>, <code class="text-nowrap">--%s</code>`, flag.Short, flag.Name)
}
return []string{name, strings.ReplaceAll(flag.Help, "|", "\|"), defaultVal}
return []string{name, strings.ReplaceAll(flag.Help, "|", `\|`), defaultVal}
}
func writeFlagTable(writer io.Writer, level int, fgm *kingpin.FlagGroupModel) error {

Loading…
Cancel
Save