Add --port
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user