• Daniel Martí's avatar
    cmd/go: make 'go test -h' print two lines · ca33f33b
    Daniel Martí authored
    Like every other command's -h flag. To achieve this, pass the command's
    usage function to the cmdflag package, since that package is used by
    multiple commands and cannot directly access *base.Command.
    
    This also lets us get rid of testFlag1 and testFlag2, and instead have
    contiguous raw strings for the test and testflag help docs.
    
    Fixes #26999.
    
    Change-Id: I2ebd66835ee61fa83270816a01fa312425224bb3
    Reviewed-on: https://go-review.googlesource.com/c/144558
    Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarAlan Donovan <adonovan@google.com>
    ca33f33b
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...