1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Additions/revisions to help-message (https://github.com/ruby/irb/pull/370)

Changed:

    Added text to options that said just 'same as ruby -whatever'.
    Added defaults.
    Removed an errant tab.

https://github.com/ruby/irb/commit/dfe454cc33
This commit is contained in:
Burdette Lamar 2022-07-07 13:15:32 -05:00 committed by git
parent 65ae2bb2e0
commit 55c5bf27f5

View file

@ -10,52 +10,53 @@
# #
# #
Usage: irb.rb [options] [programfile] [arguments] Usage: irb.rb [options] [programfile] [arguments]
-f Suppress read of ~/.irbrc -f Don't initialize from configuration file.
-d Set $DEBUG to true (same as `ruby -d') -d Set $DEBUG and $VERBOSE to true (same as 'ruby -d').
-r load-module Same as `ruby -r' -r load-module Require load-module (same as 'ruby -r').
-I path Specify $LOAD_PATH directory -I path Specify $LOAD_PATH directory (same as 'ruby -I').
-U Same as `ruby -U` -U Set external and internal encodings to UTF-8.
-E enc Same as `ruby -E` -E ex[:in] Set default external (ex) and internal (in) encodings
-w Same as `ruby -w` (same as 'ruby -E').
-W[level=2] Same as `ruby -W` -w Suppress warnings (same as 'ruby -w').
-W[level=2] Set warning level: 0=silence, 1=medium, 2=verbose
(same as 'ruby -W').
--context-mode n Set n[0-4] to method to create Binding Object, --context-mode n Set n[0-4] to method to create Binding Object,
when new workspace was created when new workspace was created.
--extra-doc-dir Add an extra doc dir for the doc dialog --extra-doc-dir Add an extra doc dir for the doc dialog.
--echo Show result (default) --echo Show result (default).
--noecho Don't show result --noecho Don't show result.
--echo-on-assignment --echo-on-assignment
Show result on assignment Show result on assignment.
--noecho-on-assignment --noecho-on-assignment
Don't show result on assignment Don't show result on assignment.
--truncate-echo-on-assignment --truncate-echo-on-assignment
Show truncated result on assignment (default) Show truncated result on assignment (default).
--inspect Use `inspect' for output --inspect Use 'inspect' for output.
--noinspect Don't use inspect for output --noinspect Don't use 'inspect' for output.
--multiline Use multiline editor module --multiline Use multiline editor module.
--nomultiline Don't use multiline editor module --nomultiline Don't use multiline editor module (default).
--singleline Use singleline editor module --singleline Use single line editor module.
--nosingleline Don't use singleline editor module --nosingleline Don't use single line editor module (default).
--colorize Use colorization --colorize Use color-highlighting (default).
--nocolorize Don't use colorization --nocolorize Don't use color-highlighting.
--autocomplete Use autocompletion --autocomplete Use auto-completion (default).
--noautocomplete Don't use autocompletion --noautocomplete Don't use auto-completion.
--prompt prompt-mode/--prompt-mode prompt-mode --prompt prompt-mode, --prompt-mode prompt-mode
Switch prompt mode. Pre-defined prompt modes are Set prompt mode. Pre-defined prompt modes are:
`default', `simple', `xmp' and `inf-ruby' 'default', 'classic', 'simple', 'inf-ruby', 'xmp', 'null'.
--inf-ruby-mode Use prompt appropriate for inf-ruby-mode on emacs. --inf-ruby-mode Use prompt appropriate for inf-ruby-mode on emacs.
Suppresses --multiline and --singleline. Suppresses --multiline and --singleline.
--sample-book-mode/--simple-prompt --sample-book-mode, --simple-prompt
Simple prompt mode Set prompt mode to 'simple'.
--noprompt No prompt mode --noprompt Don't output prompt.
--single-irb Share self with sub-irb. --single-irb Share self with sub-irb.
--tracer Display trace for each execution of commands. --tracer Show stack trace for each command.
--back-trace-limit n --back-trace-limit n[=16]
Display backtrace top n and tail n. The default Display backtrace top n and bottom n.
value is 16. --verbose Show details.
--verbose Show details --noverbose Don't show details.
--noverbose Don't show details -v, --version Print the version of irb.
-v, --version Print the version of irb -h, --help Print help.
-h, --help Print help -- Separate options of irb from the list of command-line args.
-- Separate options of irb from the list of command-line args
# vim:fileencoding=utf-8 # vim:fileencoding=utf-8