Skip to content

Commit f13d838

Browse files
benpaxton-hfjirfag
authored andcommitted
fix help generation; update README
1 parent c41b1e2 commit f13d838

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ Flags:
503503
-h, --help help for run
504504
505505
Global Flags:
506+
--color string Use color when printing; can be 'always', 'auto', or 'never' (default "auto")
506507
-j, --concurrency int Concurrency (default NumCPU) (default 8)
507508
--cpu-profile-path string Path to CPU profile output file
508509
--mem-profile-path string Path to memory profile output file

pkg/commands/executor.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ func NewExecutor(version, commit, date string) *Executor {
5252
}
5353
if commandLineCfg != nil {
5454
logutils.SetupVerboseLog(e.log, commandLineCfg.Run.IsVerbose)
55-
}
5655

57-
switch commandLineCfg.Output.Color {
58-
case "always":
59-
color.NoColor = false
60-
case "never":
61-
color.NoColor = true
62-
case "auto":
63-
// nothing
64-
default:
65-
e.log.Fatalf("invalid value %q for --color; must be 'always', 'auto', or 'never'", commandLineCfg.Output.Color)
56+
switch commandLineCfg.Output.Color {
57+
case "always":
58+
color.NoColor = false
59+
case "never":
60+
color.NoColor = true
61+
case "auto":
62+
// nothing
63+
default:
64+
e.log.Fatalf("invalid value %q for --color; must be 'always', 'auto', or 'never'", commandLineCfg.Output.Color)
65+
}
6666
}
6767

6868
// init of commands must be done before config file reading because

0 commit comments

Comments
 (0)