Improvement for docker subcommand's help messages
Signed-off-by: Wen Cheng Ma <wenchma@cn.ibm.com>
This commit is contained in:
parent
562ec005a6
commit
ac81eea671
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue