Skip to content

Commit

Permalink
allow colons in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 26, 2015
1 parent 164538a commit c8d028b
Showing 1 changed file with 7 additions and 4 deletions.
Expand Up @@ -26,15 +26,18 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException
for (aH.Argument arg : aH.interpret(scriptEntry.getArguments())) {
if (!scriptEntry.hasObject("type")
&& arg.matchesPrefix("type")
&& arg.matchesEnum(Type.values()))
&& arg.matchesEnum(Type.values())) {
scriptEntry.addObject("type", arg.asElement());
}

else if (!scriptEntry.hasObject("file")
&& arg.matchesPrefix("file"))
&& arg.matchesPrefix("file")) {
scriptEntry.addObject("file", arg.asElement());
}

else if (!scriptEntry.hasObject("message"))
scriptEntry.addObject("message", arg.asElement());
else if (!scriptEntry.hasObject("message")) {
scriptEntry.addObject("message", new Element(arg.raw_value));
}

else
arg.reportUnhandled();
Expand Down

0 comments on commit c8d028b

Please sign in to comment.