Allow arguments for "nimrod run"

This commit is contained in:
def 2014-07-28 17:41:00 +02:00
commit d9b5ae13be
3 changed files with 5 additions and 7 deletions

View file

@ -59,7 +59,7 @@ proc processCmdLine*(pass: TCmdLinePass, cmd: string) =
inc argsCount
if pass == passCmd2:
if optRun notin gGlobalOptions and arguments != "":
if optRun notin gGlobalOptions and arguments != "" and options.command != "run":
rawMessage(errArgsNeedRunOption, [])
proc serve*(action: proc (){.nimcall.}) =