Skip to content

Commit

Permalink
Exposed modules-download-mode as a command line option (#781)
Browse files Browse the repository at this point in the history
* Exposed modules-download-mode as a command line option

* Split line into two.

* Regenerated README.md file
  • Loading branch information
pstibrany authored and jirfag committed Oct 14, 2019
1 parent fa69ddf commit d47b6f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/commands/run.go
Expand Up @@ -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"))
Expand Down

0 comments on commit d47b6f5

Please sign in to comment.