Index of Command-Line Options
These are the IRB command-line options, with links to explanatory text:
-d: Set$DEBUGand $VERBOSE totrue.-E _ex_[:_in_]: Set initial external (ex) and internal (in) encodings (same asruby -E).-f: Don't initialize from configuration file.-I _dirpath_: Specify $LOAD_PATH directory (same asruby -I).-r _load-module_: Require load-module (same asruby -r).-U: Set external and internal encodings to UTF-8.-w: Suppress warnings (same asruby -w).-W[_level_]: Set warning level; 0=silence, 1=medium, 2=verbose (same asruby -W).--autocomplete: Use auto-completion.--back-trace-limit _n_: Set a backtrace limit; display at most the topnand bottomnentries.--colorize: Use color-highlighting for input and output.--context-mode _n_: Select method to createBindingobject for new workspace;nin range0..5.--echo: Print (echo) return values.--extra-doc-dir _dirpath_: Add a documentation directory for the documentation dialog.--inf-ruby-mode: Set prompt mode to :INF_RUBY (appropriate forinf-ruby-modeon Emacs); suppresses --multiline and --singleline.--inspect: Use methodinspectfor printing (echoing) return values.--multiline: Use the multiline editor as the input method.--noautocomplete: Don't use auto-completion.--nocolorize: Don't use color-highlighting for input and output.--noecho: Don't print (echo) return values.--noecho-on-assignment: Don't print (echo) result on assignment.--noinspect: Don't se methodinspectfor printing (echoing) return values.--nomultiline: Don't use the multiline editor as the input method.--noprompt: Don't print prompts.--noscript: Treat the first command-line argument as a normal command-line argument, and include it inARGV.--nosingleline: Don't use the singleline editor as the input method.--noverbose: Don't print verbose details.--prompt _mode_,--prompt-mode _mode_: Set prompt and return formats;modemay be a pre-defined prompt or the name of a custom prompt.--script: Treat the first command-line argument as the path to an initialization script, and omit it fromARGV.--simple-prompt,--sample-book-mode: Set prompt mode to :SIMPLE.--singleline: Use the singleline editor as the input method.--tracer: Use Tracer to print a stack trace for each input command.--truncate-echo-on-assignment: Print (echo) truncated result on assignment.--verbosePrint verbose details.-v,--version: Print the IRB version.-h,--help: Print the IRB help text.--: Separate options from arguments on the command-line.