mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
Support short and json formats for version cmd (#1315)
This commit is contained in:
parent
8084559c42
commit
a35fd6e91a
3 changed files with 50 additions and 2 deletions
|
@ -234,6 +234,7 @@ func (e *Executor) getConfigForCommandLine() (*config.Config, error) {
|
|||
// Use another config variable here, not e.cfg, to not
|
||||
// affect main parsing by this parsing of only config option.
|
||||
initFlagSet(fs, &cfg, e.DBManager, false)
|
||||
initVersionFlagSet(fs, &cfg)
|
||||
|
||||
// Parse max options, even force version option: don't want
|
||||
// to get access to Executor here: it's error-prone to use
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue