c2nim,pas2nim: use the stdout.writeln to display the "unknown option" message
This commit is contained in:
parent
d1c49caa68
commit
19f6750b92
2 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue