mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 04:27:44 +00:00
c2nim,pas2nim: use the stdout.writeln to display the "unknown option" message
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user