simplify nimscript.nim

This commit is contained in:
Araq
2015-08-21 01:34:46 +02:00
parent 9659540b18
commit a2bb7d4c71
3 changed files with 10 additions and 25 deletions

View File

@@ -355,7 +355,7 @@ proc mainCommand* =
gGlobalOptions.incl(optCaasEnabled)
msgs.gErrorMax = high(int) # do not stop after first error
serve(mainCommand)
of "nop": discard
of "nop", "help": discard
else:
rawMessage(errInvalidCommandX, command)