• Rob Pike's avatar
    cmd/vet: improve documentation for flags, slightly · d1feddb7
    Rob Pike authored
    The way that -all works was unclear from the documentation and made
    worse by recent changes to the flag package. Improve matters by making
    the help message say "default true" for the tests that do default to true,
    and tweak some of the wording.
    
    Before:
    
    Usage of vet:
    	vet [flags] directory...
    	vet [flags] files... # Must be a single package
    For more information run
    	go doc cmd/vet
    
    Flags:
      -all
        	enable all non-experimental checks (default unset)
      -asmdecl
        	check assembly against Go declarations (default unset)
    ...
    
    After:
    
    Usage of vet:
    	vet [flags] directory...
    	vet [flags] files... # Must be a single package
    By default, -all is set and all non-experimental checks are run.
    For more information run
    	go doc cmd/vet
    
    Flags:
      -all
        	enable all non-experimental checks (default true)
      -asmdecl
        	check assembly against Go declarations (default true)
    ...
    
    Change-Id: Ie94b27381a9ad2382a10a7542a93bce1d59fa8f5
    Reviewed-on: https://go-review.googlesource.com/21495Reviewed-by: 's avatarAndrew Gerrand <adg@golang.org>
    d1feddb7
Name
Last commit
Last update
..
internal/whitelist Loading commit data...
testdata Loading commit data...
README Loading commit data...
asmdecl.go Loading commit data...
assign.go Loading commit data...
atomic.go Loading commit data...
bool.go Loading commit data...
buildtag.go Loading commit data...
cgo.go Loading commit data...
composite.go Loading commit data...
copylock.go Loading commit data...
deadcode.go Loading commit data...
doc.go Loading commit data...
main.go Loading commit data...
method.go Loading commit data...
nilfunc.go Loading commit data...
print.go Loading commit data...
rangeloop.go Loading commit data...
shadow.go Loading commit data...
shift.go Loading commit data...
structtag.go Loading commit data...
tests.go Loading commit data...
types.go Loading commit data...
unsafeptr.go Loading commit data...
unused.go Loading commit data...
vet_test.go Loading commit data...