about summary refs log tree commit diff stats
path: root/src/main.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-01-05 02:01:23 +0100
committerbptato <nincsnevem662@gmail.com>2023-01-05 02:01:48 +0100
commitdcc5e065f990561eaa45d75ecb69f0a51dbf2c49 (patch)
treec281c6614acf1dd3b7edb1edc25d09e5c23ce2e8 /src/main.nim
parentc0ccab9264ed99e75ee42197eed8af7e77e023f5 (diff)
downloadchawan-dcc5e065f990561eaa45d75ecb69f0a51dbf2c49.tar.gz
Get rid of eprint in place of stderr.write
eprint should only be used for debugging.
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.nim b/src/main.nim
index 84b57bcf..4cbf3d0d 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -40,9 +40,9 @@ Options:
     -h, --help                  Print this usage message
     -v, --version               Print version information"""
   if i == 0:
-    echo s
+    stdout.write(s & '\n')
   else:
-    eprint s
+    stderr.write(s & '\n')
   quit(i)
 
 var i = 0