fix help generation; update README
This commit is contained in:
parent
c41b1e2034
commit
f13d8387d3
@ -503,6 +503,7 @@ Flags:
|
|||||||
-h, --help help for run
|
-h, --help help for run
|
||||||
|
|
||||||
Global Flags:
|
Global Flags:
|
||||||
|
--color string Use color when printing; can be 'always', 'auto', or 'never' (default "auto")
|
||||||
-j, --concurrency int Concurrency (default NumCPU) (default 8)
|
-j, --concurrency int Concurrency (default NumCPU) (default 8)
|
||||||
--cpu-profile-path string Path to CPU profile output file
|
--cpu-profile-path string Path to CPU profile output file
|
||||||
--mem-profile-path string Path to memory 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 {
|
if commandLineCfg != nil {
|
||||||
logutils.SetupVerboseLog(e.log, commandLineCfg.Run.IsVerbose)
|
logutils.SetupVerboseLog(e.log, commandLineCfg.Run.IsVerbose)
|
||||||
}
|
|
||||||
|
|
||||||
switch commandLineCfg.Output.Color {
|
switch commandLineCfg.Output.Color {
|
||||||
case "always":
|
case "always":
|
||||||
color.NoColor = false
|
color.NoColor = false
|
||||||
case "never":
|
case "never":
|
||||||
color.NoColor = true
|
color.NoColor = true
|
||||||
case "auto":
|
case "auto":
|
||||||
// nothing
|
// nothing
|
||||||
default:
|
default:
|
||||||
e.log.Fatalf("invalid value %q for --color; must be 'always', 'auto', or 'never'", commandLineCfg.Output.Color)
|
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
|
// init of commands must be done before config file reading because
|
||||||
|
Loading…
x
Reference in New Issue
Block a user