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

View file

@ -68,7 +68,7 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) =
)
self.initDefinesProg(conf, "nim_compiler")
if paramCount() == 0:
writeCommandLineUsage(conf, conf.helpWritten)
writeCommandLineUsage(conf)
return
self.processCmdLineAndProjectPath(conf)

View file

@ -194,7 +194,6 @@ type
features*: set[Feature]
arguments*: string ## the arguments to be passed to the program that
## should be run
helpWritten*: bool
ideCmd*: IdeCmd
oldNewlines*: bool
cCompiler*: TSystemCC