mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-12 16:44:05 -08:00
fix fmt
Signed-off-by: B1F030 <b1fzhang@gmail.com>
This commit is contained in:
parent
15ac95ddd0
commit
3648386345
|
@ -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)
|
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 {
|
func writeFlagTable(writer io.Writer, level int, fgm *kingpin.FlagGroupModel) error {
|
||||||
|
|
Loading…
Reference in a new issue