go/analysis/singlechecker: append a newline after "Flags:"

Currently `flag.Usage` set in `Main` prints a message as follows,
```
⋮
Flags:  -V      print version and exit
⋮
```
but this should be
```
⋮
Flags:
  -V      print version and exit
⋮
```
It seems this is caused by [this](https://go-review.googlesource.com/c/tools/+/162717).

Change-Id: Ida7223e87677da4b5f280708213a526b5973ce78
GitHub-Last-Rev: ed2729641cc564c66689fd959fdbcc341b9e7c77
GitHub-Pull-Request: golang/tools#213
Reviewed-on: https://go-review.googlesource.com/c/tools/+/223123
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
nu50218 2020-03-12 06:19:50 +00:00 committed by Michael Matloob
parent bd435c612c
commit 797567968e
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ func Main(a *analysis.Analyzer) {
if len(paras) > 1 {
fmt.Fprintln(os.Stderr, strings.Join(paras[1:], "\n\n"))
}
fmt.Fprintf(os.Stderr, "\nFlags:")
fmt.Fprintln(os.Stderr, "\nFlags:")
flag.PrintDefaults()
}