rhino-jsc version (return code: 0)
js: File "version" is not a valid js file name.
rhino-jsc --help (return code: 0)
Usage: rhino-jsc [OPTION]... SOURCE...
Valid options are:
-version VERSION Use the specified language version.
VERSION should be one of 100|110|120|130|140|150|160|170.
-opt LEVEL Use optimization with the specified level.
LEVEL should be one of 0..9.
-debug, -g Include debug information.
-nosource Do not include source to function objects.
It makes f.toString() useless and violates ECMAScript
standard but makes generated classes smaller and
saves memory.
-o CLASSNAME Use specified name as the last component of the main
generated class name. When specified, only one script
SOURCE is allowed. If omitted, it defaults to source
name with stripped .js suffix.
-package PACKAGE Place generated classes in the specified package.
-d DIRECTORY Use DIRECTORY as destination directory for generated
classes. If omitted, it defaults to parent directory
of SOURCE.
-encoding charset Sets the character encoding of the source files.
-extends CLASS The main generated class will extend the specified
class CLASS.
-implements INTERFACE1,INTERFACE2,... The main generated class will
implement the specified list of interfaces.
-main-method-class CLASS Specify the class name used for main method
implementation. The class must have a method matching
"public static void main(Script sc, String[] args)"
-observe-instruction-count Generate code that contains callbacks to
accumulate counts of executed instructions. Code
compiled with this flag can be monitored using
Context.setInstructionObserverThreshold.
-help, --help, -h Print this help and exit.