Merge pull request #18387 from wenchma/18385-improve_help_msg

Improvement for docker subcommand's help messages
This commit is contained in:
Sebastiaan van Stijn 2016-01-03 12:19:53 +01:00
commit e1589b001e

View file

@ -571,10 +571,7 @@ func (fs *FlagSet) PrintDefaults() {
format := " -%s=%s"
fmt.Fprintf(writer, format, strings.Join(names, ", -"), val)
}
for i, line := range strings.Split(flag.Usage, "\n") {
if i != 0 {
line = " " + line
}
for _, line := range strings.Split(flag.Usage, "\n") {
fmt.Fprintln(writer, "\t", line)
}
}