Improvement for docker subcommand's help messages

Signed-off-by: Wen Cheng Ma <wenchma@cn.ibm.com>
Upstream-commit: d7dc439623ff18d2a8dd152dbb032a307100cb2e
Component: engine
This commit is contained in:
Wen Cheng Ma
2015-12-03 15:16:53 +08:00
parent e16a7b429c
commit b350f7594e
4 changed files with 20 additions and 16 deletions

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)
}
}