tools/{niminst,nimweb}.nim: switch from write and writeln to quit

This commit is contained in:
Keita Haga 2011-07-25 04:20:28 +09:00
commit fde74b7095
2 changed files with 17 additions and 17 deletions

View file

@ -142,8 +142,8 @@ proc parseCmdLine(c: var TConfigData) =
break
of cmdLongOption, cmdShortOption:
case normalize(key)
of "help", "h": write(stdout, Usage)
of "version", "v": writeln(stdout, Version)
of "help", "h": quit(Usage)
of "version", "v": quit(Version)
of "o", "output": c.outdir = val
of "var":
var idx = val.find('=')

View file

@ -70,8 +70,8 @@ proc parseCmdLine(c: var TConfigData) =
break
of cmdLongOption, cmdShortOption:
case normalize(key)
of "help", "h": write(stdout, Usage)
of "version", "v": writeln(stdout, Version)
of "help", "h": quit(Usage)
of "version", "v": quit(Version)
of "o", "output": c.outdir = val
of "var":
var idx = val.find('=')