summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKeita Haga <keitahaga@gmx.com>2011-07-29 20:21:29 +0900
committerKeita Haga <keitahaga@gmx.com>2011-07-29 20:21:29 +0900
commit19f6750b92f6acd2d4bbfd2046a87f2976c631f8 (patch)
treea382b17ae0054add2b09e780a426e617cc8d996a
parentd1c49caa68e9747a3d303b205e3a41da8c4bda29 (diff)
downloadNim-19f6750b92f6acd2d4bbfd2046a87f2976c631f8.tar.gz
c2nim,pas2nim: use the stdout.writeln to display the "unknown option" message
-rwxr-xr-xcompiler/c2nim/c2nim.nim2
-rwxr-xr-xcompiler/pas2nim/pas2nim.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/c2nim/c2nim.nim b/compiler/c2nim/c2nim.nim
index 0e39f5976..6d7a0d6c1 100755
--- a/compiler/c2nim/c2nim.nim
+++ b/compiler/c2nim/c2nim.nim
@@ -64,7 +64,7 @@ for kind, key, val in getopt():
     of "o", "out": outfile = val
     else:
       if not parserOptions.setOption(key, val):
-        stdout.write("[Error] unknown option: " & key)
+        stdout.writeln("[Error] unknown option: " & key)
   of cmdEnd: assert(false)
 if infile.len == 0:
   # no filename has been given, so we show the help:
diff --git a/compiler/pas2nim/pas2nim.nim b/compiler/pas2nim/pas2nim.nim
index 11aa53f20..4102c33cd 100755
--- a/compiler/pas2nim/pas2nim.nim
+++ b/compiler/pas2nim/pas2nim.nim
@@ -52,7 +52,7 @@ for kind, key, val in getopt():
     of "o", "out": outfile = val
     of "ref": incl(flags, pfRefs)
     of "boot": flags = flags + {pfRefs, pfMoreReplacements, pfImportBlackList}
-    else: stdout.write("[Error] unknown option: " & key)
+    else: stdout.writeln("[Error] unknown option: " & key)
   of cmdEnd: assert(false)
 if infile.len == 0:
   # no filename has been given, so we show the help: