Consider the following script: #!/usr/bin/jjs -J-Dnashorn.args=-strict -scripting -fv print('Hello'); When executed without arguments, prints Nashorn full version string. When executed with arguments, does not print version string. $> ./temp.js nashorn full version 1.8.0_45-b14 Hello $> ./temp.js -- Hello $> ./tem.js -- foobar Hello Parameters are being ignored (-strict, -ot, -doe, etc...) when arguments are passed.
|