Skip to content

Commit

Permalink
Don't require a queue object in queue, only want one
Browse files Browse the repository at this point in the history
a queue: prefix is fine
  • Loading branch information
mcmonkey4eva committed Nov 6, 2014
1 parent 435b338 commit 796f339
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -29,7 +29,8 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException
}

// No prefix required to specify the queue
else if (arg.matchesArgumentType(ScriptQueue.class)
else if ((arg.matchesArgumentType(ScriptQueue.class)
|| arg.matchesPrefix("queue"))
&& !scriptEntry.hasObject("queue")) {
scriptEntry.addObject("queue", arg.asType(ScriptQueue.class));
}
Expand Down

0 comments on commit 796f339

Please sign in to comment.