Merge pull request #36 from keitahaga/tools
niminst, nimweb: switch to quit
This commit is contained in:
commit
f26d599f4c
2 changed files with 17 additions and 17 deletions
|
|
@ -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('=')
|
||||
|
|
|
|||
|
|
@ -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('=')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue