<?xml version="1.0" encoding="UTF-8"?>
<page>
  <created-at type="datetime">2009-06-12T22:54:34Z</created-at>
  <description>Udated with latest 1.3.0 help page</description>
  <id type="integer">2425</id>
  <name>JRubyCommandLineParameters</name>
  <number type="integer">4</number>
  <person-id type="integer">7</person-id>
  <text>[[Home|&amp;raquo; JRuby Project Home Page]] &amp;nbsp;&amp;nbsp; [[Getting Started|&amp;raquo; Getting Started with JRuby]]
==JRuby Command Line Parameters==
These JRuby commands are entered in a terminal window or command window, depending on your operating system.

  $ jruby --help
  Usage: jruby [switches] [--] [programfile] [arguments]
    -0[octal]       specify record separator ( , if no argument)
    -a              autosplit mode with -n or -p (splits $_ into $F)
    -b              benchmark mode, times the script execution
    -c              check syntax only
    -Cdirectory     cd to directory, before executing your script
    -d              set debugging flags (set $DEBUG to true)
    -e 'command'    one line of script. Several -e's allowed. Omit [programfile]
    -Fpattern       split() pattern for autosplit (-a)
    -i[extension]   edit ARGV files in place (make backup if extension supplied)
    -Idirectory     specify $LOAD_PATH directory (may be used more than once)
    -J[java option] pass an option on to the JVM (e.g. -J-Xmx512m)
                      use --properties to list JRuby properties
                      run 'java -help' for a list of other Java options
    -Kkcode         specifies code-set (e.g. -Ku for Unicode
    -l              enable line ending processing
    -n              assume 'while gets(); ... end' loop around your script
    -p              assume loop like -n but print line also like sed
    -rlibrary       require the library, before executing your script
    -s              enable some switch parsing for switches after script name
    -S              look for the script in bin or using PATH environment variable
    -T[level]       turn on tainting checks
    -v              print version number, then turn on verbose mode
    -w              turn warnings on for your script
    -W[level]       set warning level; 0=silence, 1=medium, 2=verbose (default)
    -X[option]      enable extended option (omit option to list)
    -y              enable parsing debug output
    --copyright     print the copyright
    --debug         sets the execution mode most suitable for debugger functionality
    --jdb           runs JRuby process under JDB
    --properties    List all configuration Java properties (pass -J-Dproperty=value)
    --sample        run with profiling using the JVM's sampling profiler
    --client        use the non-optimizing &quot;client&quot; JVM (improves startup; default)
    --server        use the optimizing &quot;server&quot; JVM (improves perf)
    --manage        enable remote JMX management and monitoring of the VM and JRuby
    --headless      do not launch a GUI window, no matter what
    --1.8           specify Ruby 1.8.x compatibility (default)
    --1.9           specify Ruby 1.9.x compatibility
    --bytecode      show the JVM bytecode produced by compiling specified code
    --version       print the version</text>
  <text-as-html>&lt;p&gt;&lt;a href='&lt;?url_for_page Home?&gt;' class='internal'&gt;&amp;raquo; JRuby Project Home Page&lt;/a&gt; &amp;nbsp;&amp;nbsp; &lt;a href='&lt;?url_for_page Getting Started?&gt;' class='internal'&gt;&amp;raquo; Getting Started with JRuby&lt;/a&gt;&lt;/p&gt;&lt;h2&gt;&lt;a name='JRuby_Command_Line_Parameters'&gt;&lt;/a&gt;JRuby Command Line Parameters&lt;/h2&gt;
&lt;p&gt;These JRuby commands are entered in a terminal window or command window, depending on your operating system.

&lt;/p&gt;&lt;pre&gt;  $ jruby --help
  Usage: jruby [switches] [--] [programfile] [arguments]
    -0[octal]       specify record separator ( , if no argument)
    -a              autosplit mode with -n or -p (splits $_ into $F)
    -b              benchmark mode, times the script execution
    -c              check syntax only
    -Cdirectory     cd to directory, before executing your script
    -d              set debugging flags (set $DEBUG to true)
    -e 'command'    one line of script. Several -e's allowed. Omit [programfile]
    -Fpattern       split() pattern for autosplit (-a)
    -i[extension]   edit ARGV files in place (make backup if extension supplied)
    -Idirectory     specify $LOAD_PATH directory (may be used more than once)
    -J[java option] pass an option on to the JVM (e.g. -J-Xmx512m)
                      use --properties to list JRuby properties
                      run 'java -help' for a list of other Java options
    -Kkcode         specifies code-set (e.g. -Ku for Unicode
    -l              enable line ending processing
    -n              assume 'while gets(); ... end' loop around your script
    -p              assume loop like -n but print line also like sed
    -rlibrary       require the library, before executing your script
    -s              enable some switch parsing for switches after script name
    -S              look for the script in bin or using PATH environment variable
    -T[level]       turn on tainting checks
    -v              print version number, then turn on verbose mode
    -w              turn warnings on for your script
    -W[level]       set warning level; 0=silence, 1=medium, 2=verbose (default)
    -X[option]      enable extended option (omit option to list)
    -y              enable parsing debug output
    --copyright     print the copyright
    --debug         sets the execution mode most suitable for debugger functionality
    --jdb           runs JRuby process under JDB
    --properties    List all configuration Java properties (pass -J-Dproperty=value)
    --sample        run with profiling using the JVM's sampling profiler
    --client        use the non-optimizing &amp;quot;client&amp;quot; JVM (improves startup; default)
    --server        use the optimizing &amp;quot;server&amp;quot; JVM (improves perf)
    --manage        enable remote JMX management and monitoring of the VM and JRuby
    --headless      do not launch a GUI window, no matter what
    --1.8           specify Ruby 1.8.x compatibility (default)
    --1.9           specify Ruby 1.9.x compatibility
    --bytecode      show the JVM bytecode produced by compiling specified code
    --version       print the version&lt;/pre&gt;</text-as-html>
  <updated-at type="datetime">2009-06-14T00:02:31Z</updated-at>
  <wiki-id type="integer">320</wiki-id>
</page>
