Documentation ¶
Overview ¶
Command gendoc generates godoc comments describing the usage of tools based on the cmdline package.
Usage:
go run gendoc.go [flags] <pkg> [args]
<pkg> is the package path for the tool.
[args] are the arguments to pass to the tool to produce usage output. If no args are given, runs "<tool> help ..."
The reason this command is located under a testdata directory is to enforce its idiomatic use via "go run".
The gendoc command itself is not based on the cmdline library to avoid non-trivial bootstrapping.
Click to show internal directories.
Click to hide internal directories.