c2nim,pas2nim: use the stdout.writeln to display the "unknown option" message

This commit is contained in:
Keita Haga
2011-07-29 20:21:29 +09:00
parent d1c49caa68
commit 19f6750b92
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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: