From 19f6750b92f6acd2d4bbfd2046a87f2976c631f8 Mon Sep 17 00:00:00 2001 From: Keita Haga Date: Fri, 29 Jul 2011 20:21:29 +0900 Subject: c2nim,pas2nim: use the stdout.writeln to display the "unknown option" message --- compiler/pas2nim/pas2nim.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/pas2nim') 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: -- cgit 1.4.1-2-gfad0