Exposed modules-download-mode as a command line option (#781)

* Exposed modules-download-mode as a command line option

* Split line into two.

* Regenerated README.md file
This commit is contained in:
Peter Štibraný 2019-10-14 21:21:37 +02:00 committed by Isaev Denis
parent fa69ddfc14
commit d47b6f5e48

View File

@ -82,6 +82,8 @@ func initFlagSet(fs *pflag.FlagSet, cfg *config.Config, m *lintersdb.Manager, is
// Run config
rc := &cfg.Run
fs.StringVar(&rc.ModulesDownloadMode, "modules-download-mode", "",
"Modules download mode. If not empty, passed as -mod=<mode> to go tools")
fs.IntVar(&rc.ExitCodeIfIssuesFound, "issues-exit-code",
exitcodes.IssuesFound, wh("Exit code when issues were found"))
fs.StringSliceVar(&rc.BuildTags, "build-tags", nil, wh("Build tags"))