jruby — jruby interpreter
jruby [switches] [--] [programfile] [arguments]
octal
Specify the record separator (\0 if no argument is given)
autosplit mode with
-n
or
-p
(splits $_ into $F)
benchmark mode, times the script execution
check syntax only
directory
cd to
directory
before executing your script
set debugging flags (sets $DEBUG to true)
command
one line of script. Several -e's are allowed. Omit
programfile in this case. To be sure that your shell
does not mangle the command, put it within double quotes.
patternsplit() pattern for autosplit (-a)
Show the command help
extensionedit ARGV files in place (make backup if extension supplied)
directoryspecify $LOAD_PATH directory (may be used more than once)
java option
pass an option to the JVM (e.g. -J-Xmx512m). Use
--properties to list JRuby properties.
Run java -help
for a list of other Java options.
kcode specifies code-set (i.e. -Ku for Unicode,
-Ke for EUC and -Ks for SJIS)
enable line ending processing
assume “while gets(); ... end” loop around your script
assume loop like -n but print line also like sed
libraryrequire the library, before executing your script
enable some switch parsing for switches after script name
look for the script in bin or using
PATH environment variable
levelturn on tainting checks
print version number, then turn on verbose mode
turn on warnings for your script
levelset warning level: 0=silence, 1=medium, 2=verbose(default)
optionenable extended option (omit option to list them)
enable parsing debug output
print the copyright notice and exit
sets the execution mode most suitable for debugger functionality
shows the online help, listing all the command line options
runs the jruby process under JDB
List all configuration Java properties (pass -J-Dproperty=value
to set them)
run with profiling using the JVM's sampling profiler
use the non-optimizing "client" JVM (improves startup time; default)
use the optimizing "server" JVM (improves performance, but takes longer to start)
enable JMX management and monitoring of the VM and JRuby via
local process connections from tools like jconsole.
Process name is org.jruby.Main.
To enable remote connections via JMX
remoting, you need to pass additional parameters via -J.
do not launch a GUI window, no matter what. Corresponds to the
JVM option -Djava.awt.headless
specify Ruby 1.8.x compatibility (default)
specify Ruby 1.9.x compatibility (not yet fully done)
show the JVM bytecode produced by compiling specified code
print the version