diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/commands.nim | 6 | ||||
-rw-r--r-- | compiler/nim.nim | 2 | ||||
-rw-r--r-- | compiler/options.nim | 1 |
3 files changed, 3 insertions, 6 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index abee4e9b2..583d2bb9e 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -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 diff --git a/compiler/nim.nim b/compiler/nim.nim index 5ca650789..982d0c7e5 100644 --- a/compiler/nim.nim +++ b/compiler/nim.nim @@ -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) diff --git a/compiler/options.nim b/compiler/options.nim index 037febc28..f3594ca11 100644 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -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 |