mirror of https://github.com/golang/go.git
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:
parent
bd435c612c
commit
797567968e
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue