Add --port

This commit is contained in:
2026-09-12 23:48:03 +02:00
parent a180fe4b52
commit da36645aaf
14 changed files with 677 additions and 40 deletions
+3 -1
View File
@@ -222,7 +222,9 @@ func (s *Set) PrintUsage(w io.Writer, header string) {
}
fmt.Fprintf(w, "%s\n", name)
fmt.Fprintf(w, " %s", sp.usage)
if sp.def != "" && sp.def != "false" {
// A zero default means "unset" for the options that have one, and
// printing it would read as a real value.
if sp.def != "" && sp.def != "false" && sp.def != "0" {
fmt.Fprintf(w, " (default %s)", sp.def)
}
fmt.Fprintf(w, "\n [%s]\n", s.envName(sp.long))