X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?a=blobdiff_plain;f=bin%2Fruncmd.scala;h=12e49a7703d77ecdcde971af46f2594c5d9dc42f;hb=5f87a9fd0bed8832115f11073e5ee9a968ee95c0;hp=b91ed4e482999eacf455b99f600ce6d81f85894b;hpb=bc6386a709da76fef1393a11a7251b4be7032fda;p=clnl diff --git a/bin/runcmd.scala b/bin/runcmd.scala index b91ed4e..12e49a7 100755 --- a/bin/runcmd.scala +++ b/bin/runcmd.scala @@ -86,6 +86,8 @@ Polygon -7500403 true false 219 85 210 105 193 99 201 83 @#$#@#$#@ NetLogo 5.2.0""") +} else if (input.length > 3 && input(3).length > 0) { + workspace.openFromSource(url2String("file:" + input(3))) } else { workspace.openFromSource(url2String("file:resources/empty.nlogo")) }