-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 |
-Cdirpath | Execute program in specified directory. | help |
-d, --debug | Set debugging flag ($DEBUG) to true. | help + man + man |
-e 'code' | 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 | Set default external and internal encodings. | help |
-Fpattern | Set input field separator ($;); | help |
-i extension | Specifies in-place-edit mode. | help + man |
-Idirpath | Add specified directory to load paths ($LOAD_PATH); | 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 given library. | 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 | Enables verbose mode. | help + man |
-w | Enables verbose mode without printing version message at the beginning. | help + man |
-W level=2|:category | Set warning flag ($-W): 0 for silent; | help |
-x dirpath | Execute Ruby code starting from a #!ruby line. | help |
--jit | Enable JIT for the platform; | help |
--yjit | Enable in-process JIT compiler. | help |
--rjit | Enable pure-Ruby JIT compiler (experimental). | help |
--backtrace-limit num | Limits the maximum length of backtraces to num lines (default -1, meaning no limit). | help + man |
--copyright | Prints the copyright notice, and quits immediately without running any script. | help + man |
--crash-report template | Sets the template of path name to save crash report. | help + man |
--disable features | Disable features; | help |
--dump items | Dump some information. | help + man |
--enable features | Enable features; | help |
--external-encoding encoding | Set default external encoding. | help + man |
--help | Prints a summary of the options. | help + man |
--internal-encoding encoding | Specify the default external or internal character encoding | help + man |
--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 |
-y, --yydebug | This option is not guaranteed to be compatible. | help + man + man |
-optimize | Disable various optimizations to print a list disassembled bytecode instructions. | help + man |
--yjit-mem-size num | Soft limit on YJIT memory usage in MiB (default: 128). | help |
--yjit-exec-mem-size num | Hard limit on executable memory block in MiB. | help |
--yjit-call-threshold num | Number of calls to trigger JIT. | help |
--yjit-cold-threshold num | Global calls after which ISEQs not compiled (default: 200K). | help |
--yjit-stats | Enable collecting YJIT statistics. | help |
--yjit-log file|dir | Enable logging of YJIT's compilation activity. | help |
--yjit-disable | Disable YJIT for lazily enabling it with RubyVM::YJIT.enable. | help |
--yjit-code-gc | Run code GC when the code size reaches the limit. | help |
--yjit-perf | Enable frame pointers and perf profiling. | help |
--yjit-trace-exits | Record Ruby source location when exiting from generated code. | help |
--yjit-trace-exits-sample-rate num | Trace exit locations only every Nth occurrence. | help |
--rjit-exec-mem-size num | Size of executable memory block in MiB (default: 64). | help |
--rjit-call-threshold num | Number of calls to trigger JIT (default: 10). | help |
--rjit-stats | Enable collecting RJIT statistics. | help |
--rjit-disable | Disable RJIT for lazily enabling it with RubyVM::RJIT.enable. | help |
--rjit-trace | Allow TracePoint during JIT compilation. | help |
--rjit-trace-exits | Trace side exit locations. | 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 |
--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 |