X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=clnl;a=blobdiff_plain;f=bin%2Fruncmd.scala;h=03bdc8de1330ad86c19909210afc817280c18a25;hp=f85ee7e61541d53b07cc5ba7ca82fd924903f9c5;hb=b018550;hpb=daa3b99095a3219506e930c7dd684bfbab4cf107 diff --git a/bin/runcmd.scala b/bin/runcmd.scala index f85ee7e..03bdc8d 100755 --- a/bin/runcmd.scala +++ b/bin/runcmd.scala @@ -35,7 +35,7 @@ workspace.mainRNG.setSeed(15) if(commands.length > 0) { workspace.runCompiledCommands(new api.SimpleJobOwner("test", workspace.world.mainRNG, api.AgentKind.Observer), workspace.compileCommands(commands, api.AgentKind.Observer)) } -if(input.length > 0) { +if(input.length > 1) { val reporter = input(1) System.out.println(org.nlogo.api.Dump.logoObject(workspace.runCompiledReporter(new api.SimpleJobOwner("test", workspace.world.mainRNG, api.AgentKind.Observer), workspace.compileReporter(reporter)))) }