You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It also accepts the standard build flags -v, -n, and -x. The -v flag prints the names of packages and files as they are processed. The -n flag prints commands that would be executed. The -x flag prints commands as they are executed.
The usage line should be updated to mention those additional flags:
Also, go generate does accept at least some of standard build flags (e.g., -tags=foo), so for clarity and consistency that should be included in usage also:
rsc
changed the title
cmd/go: Documentation for go generate usage doesn't mention other available flags.
cmd/go: document 'go generate' flags -n -v -x
Nov 5, 2015
Looking at https://tip.golang.org/cmd/go/#hdr-Generate_Go_files_by_processing_source right now:
However, at the bottom it mentions:
The usage line should be updated to mention those additional flags:
Other commands have their usage complete and do not skip -n and -x flags that are available, for example:
It seems -v is never included even if available, so maybe it's most consistent to do:
The text was updated successfully, but these errors were encountered: