diff --git a/compiler/commands.nim b/compiler/commands.nim index abee4e9b21973..583d2bb9e77e5 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 5ca6507898bbd..982d0c7e5703e 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 037febc284c39..f3594ca11351e 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