text: import "golang.org/x/tools/internal/tool"
  Package tool is a harness for writing Go tools.
  CommandLineErrorf is like fmt.Errorf except that it returns a value that triggers printing of the command line help. In general you should use this when generating command line validation errors.
  func Main(ctx context.Context, app Application, args []string)
  Main should be invoked directly by main function. It will only return if there was no error. If an error was encountered it is printed to standard error and the application exits with an exit code of 2.
  Run is the inner loop for Main; invoked by Main, recursively by Run, and by various tests. It runs the application and returns an error..
  Package tool imports 10 packages (graph) and is imported by 7 packages. Updated 2020-07-02. Refresh now. Tools for package owners.