-0 octal | (The digit zero''.) Specifies the input record separator ("$/") as an octal number. | help + man |
-a | Turns on auto-split mode when used with -n or -p. | help + man |
-c | Causes Ruby to check the syntax of the script and exit without executing. | help + man |
-Cdirectory | cd to directory before executing your script | help |
-d, --debug | set debugging flags (set $DEBUG to true) | help + man + man |
-e 'command' | Specifies script from command-line while telling Ruby not to search the rest of the arguments for a script file name. | help + man |
-Eex, --encoding :in | specify the default external and internal character encodings | help |
-Fpattern | split() pattern for autosplit (-a) | help |
-i extension | edit ARGV files in place (make backup if extension supplied) | help + man |
-Idirectory | specify $LOAD_PATH directory (may be used more than once) | help |
-l | (The lowercase letter ell''.) Enables automatic line-ending processing, which means to firstly set "$" to the value of "$/", and secondly chops every line read using chomp!. | help + man |
-n | Causes Ruby to assume the following loop around your script, which makes it iterate over file name arguments somewhat like sed -n or awk. | help + man |
-p | Acts mostly same as -n switch, but print the value of variable "$_" at the each end of the loop. | help + man |
-rlibrary | require the library before executing your script | help |
-s | Enables some switch parsing for switches after script name but before any file name arguments (or before a --). | help + man |
-S | Makes Ruby use the PATH environment variable to search for script, unless its name begins with a slash. | help + man |
-v | print the version number, then turn on verbose mode | help + man |
-w | Enables verbose mode without printing version message at the beginning. | help + man |
-W level=2|:category | set warning level; | help |
-x directory | strip off text before #!ruby line and perhaps cd to directory | help |
--jit | enable JIT for the platform, same as --yjit | help |
--mjit | enable C compiler-based JIT compiler (experimental) | help |
--yjit | enable in-process JIT compiler | help |
--copyright | Prints the copyright notice, and quits immediately without running any script. | help + man |
--dump insns|parsetree|... | dump debug information. | help + man |
--enable, --disable jit|rubyopt|... | enable or disable features. | help |
--external-encoding, --internal-encoding encoding | specify the default external or internal character encoding | help + man + man |
--backtrace-limit num | limit the maximum length of backtrace | help |
--verbose | Enables verbose mode without printing version message at the beginning. | help + man |
--version | Prints the version of the Ruby interpreter, and quits immediately without running any script. | help + man |
--help | show this message, -h for short message | help + man |
--mjit-debug | Enable JIT debugging (very slow), or add cflags if specified | help |
--mjit-wait | Wait until JIT compilation finishes every time (for testing) | help |
--mjit-save-temps | Save JIT temporary files in $TMP or /tmp (for testing) | help |
--mjit-verbose num | Print JIT logs of level num or less to stderr (default: 0) | help |
--mjit-max-cache num | Max number of methods to be JIT-ed in a cache (default: 100) | help |
--mjit-call-threshold num | Number of calls to trigger JIT (for testing, default: 10000) | help |
--yjit-stats | Enable collecting YJIT statistics | help |
--yjit-exec-mem-size num | Size of executable memory block in MiB (default: 64) | help |
--yjit-call-threshold num | Number of calls to trigger JIT (default: 10) | help |
--yjit-max-versions num | Maximum number of versions per basic block (default: 4) | help |
--yjit-greedy-versioning | Greedy versioning mode (default: disabled) | help |
-C directory | (in the manual page but not in --help) | man |
-X directory | Causes Ruby to switch to the directory. (in the manual page but not in --help) | man |
-F pattern | Specifies input field separator ("$;"). (in the manual page but not in --help) | man |
-I directory | Used to tell Ruby where to load the library scripts. (in the manual page but not in --help) | man |
-K kcode | Specifies KANJI (Japanese) encoding. (in the manual page but not in --help) | man |
-U | Sets the default value for internal encodings ("Encoding.default_internal") to UTF-8. (in the manual page but not in --help) | man |
-h | (in the manual page but not in --help) | man |
-r library | Causes Ruby to load the library using require. (in the manual page but not in --help) | man |
-y | (in the manual page but not in --help) | man |
--yydebug | DO NOT USE. (in the manual page but not in --help) | man |
--disable-FEATURE | (in the manual page but not in --help) | man |
--enable-FEATURE | Disables (or enables) the specified FEATURE. (in the manual page but not in --help) | man |
--disable-gems | (in the manual page but not in --help) | man |
--enable-gems | Disables (or enables) RubyGems libraries. (in the manual page but not in --help) | man |
--disable-rubyopt | (in the manual page but not in --help) | man |
--enable-rubyopt | Ignores (or considers) the RUBYOPT environment variable. (in the manual page but not in --help) | man |
--disable-all | (in the manual page but not in --help) | man |
--enable-all | Disables (or enables) all features. (in the manual page but not in --help) | man |