diff options
author | Bo Lingen <lingenbw@gmail.com> | 2017-10-02 05:20:24 -0500 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-10-02 12:20:24 +0200 |
commit | 535f21ced382b63e5b7c5674376e10fdb0f16dd3 (patch) | |
tree | 90920f10e2ed587343bdbd367fdb03e4bfe0148a /compiler | |
parent | 1c6c87f47f2f47224dfe452461eb231100fad4d8 (diff) | |
download | Nim-535f21ced382b63e5b7c5674376e10fdb0f16dd3.tar.gz |
direct `nim --version` to stdout rather than stderr (#6460)
Closes #6298
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/commands.nim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 9781a8af4..cd2241995 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -81,15 +81,17 @@ proc writeVersionInfo(pass: TCmdLinePass) = if pass == passCmd1: msgWriteln(`%`(HelpMessage, [VersionAsString, platform.OS[platform.hostOS].name, - CPU[platform.hostCPU].name])) + CPU[platform.hostCPU].name]), + {msgStdout}) const gitHash = gorge("git log -n 1 --format=%H").strip when gitHash.len == 40: - msgWriteln("git hash: " & gitHash) + msgWriteln("git hash: " & gitHash, {msgStdout}) msgWriteln("active boot switches:" & usedRelease & usedAvoidTimeMachine & usedTinyC & usedGnuReadline & usedNativeStacktrace & usedNoCaas & - usedFFI & usedBoehm & usedMarkAndSweep & usedGenerational & usedGoGC & usedNoGC) + usedFFI & usedBoehm & usedMarkAndSweep & usedGenerational & usedGoGC & usedNoGC, + {msgStdout}) msgQuit(0) var |