c2nim,pas2nim: bugfix: --out:FILE option does not work as documented
This commit is contained in:
parent
dce8949b9b
commit
d1c49caa68
2 changed files with 11 additions and 11 deletions
|
|
@ -61,7 +61,7 @@ for kind, key, val in getopt():
|
|||
of "version", "v":
|
||||
stdout.write(Version & "\n")
|
||||
quit(0)
|
||||
of "o", "out": outfile = key
|
||||
of "o", "out": outfile = val
|
||||
else:
|
||||
if not parserOptions.setOption(key, val):
|
||||
stdout.write("[Error] unknown option: " & key)
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ for kind, key, val in getopt():
|
|||
of "version", "v":
|
||||
stdout.write(Version & "\n")
|
||||
quit(0)
|
||||
of "o", "out": outfile = key
|
||||
of "o", "out": outfile = val
|
||||
of "ref": incl(flags, pfRefs)
|
||||
of "boot": flags = flags + {pfRefs, pfMoreReplacements, pfImportBlackList}
|
||||
else: stdout.write("[Error] unknown option: " & key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue