Prims - Implement die
[clnl] / bin / runcmd.scala
index f85ee7e61541d53b07cc5ba7ca82fd924903f9c5..03bdc8de1330ad86c19909210afc817280c18a25 100755 (executable)
@@ -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))))
 }