doc: move specific checks to advanced options, for a less intimidatin… (#10779)

* doc: move specific checks to advanced options, for a less intimidating help

* remove useless bool
This commit is contained in:
Jacek Sieka 2019-03-04 03:49:56 -06:00 • committed by Andreas Rumpf
commit 7072e3ddca
5 changed files with 16 additions and 16 deletions

View file

@ -102,10 +102,8 @@ proc writeVersionInfo(conf: ConfigRef; pass: TCmdLinePass) =
{msgStdout})
msgQuit(0)
proc writeCommandLineUsage*(conf: ConfigRef; helpWritten: var bool) =
if not helpWritten:
msgWriteln(conf, getCommandLineDesc(conf), {msgStdout})
helpWritten = true
proc writeCommandLineUsage*(conf: ConfigRef) =
msgWriteln(conf, getCommandLineDesc(conf), {msgStdout})
proc addPrefix(switch: string): string =
if len(switch) == 1: result = "-" & switch