mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
fix help generation; update README
This commit is contained in:
parent
c41b1e2034
commit
f13d8387d3
2 changed files with 11 additions and 10 deletions
|
@ -503,6 +503,7 @@ Flags:
|
|||
-h, --help help for run
|
||||
|
||||
Global Flags:
|
||||
--color string Use color when printing; can be 'always', 'auto', or 'never' (default "auto")
|
||||
-j, --concurrency int Concurrency (default NumCPU) (default 8)
|
||||
--cpu-profile-path string Path to CPU profile output file
|
||||
--mem-profile-path string Path to memory profile output file
|
||||
|
|
|
@ -52,17 +52,17 @@ func NewExecutor(version, commit, date string) *Executor {
|
|||
}
|
||||
if commandLineCfg != nil {
|
||||
logutils.SetupVerboseLog(e.log, commandLineCfg.Run.IsVerbose)
|
||||
}
|
||||
|
||||
switch commandLineCfg.Output.Color {
|
||||
case "always":
|
||||
color.NoColor = false
|
||||
case "never":
|
||||
color.NoColor = true
|
||||
case "auto":
|
||||
// nothing
|
||||
default:
|
||||
e.log.Fatalf("invalid value %q for --color; must be 'always', 'auto', or 'never'", commandLineCfg.Output.Color)
|
||||
switch commandLineCfg.Output.Color {
|
||||
case "always":
|
||||
color.NoColor = false
|
||||
case "never":
|
||||
color.NoColor = true
|
||||
case "auto":
|
||||
// nothing
|
||||
default:
|
||||
e.log.Fatalf("invalid value %q for --color; must be 'always', 'auto', or 'never'", commandLineCfg.Output.Color)
|
||||
}
|
||||
}
|
||||
|
||||
// init of commands must be done before config file reading because
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue