Skip to content

Commit ef8e390

Browse files
committed
Update help message for next context-mode of 4
While here, fixing tab/space issues in help message, and sync rdoc for IRB class to match the help message.
1 parent ab9852c commit ef8e390

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

lib/irb.rb

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,27 +60,36 @@
6060
# -E enc Same as `ruby -E`
6161
# -w Same as `ruby -w`
6262
# -W[level=2] Same as `ruby -W`
63-
# --inspect Use `inspect' for output (default except for bc mode)
63+
# --context-mode n Set n[0-4] to method to create Binding Object,
64+
# when new workspace was created
65+
# --echo Show result(default)
66+
# --noecho Don't show result
67+
# --inspect Use `inspect' for output
6468
# --noinspect Don't use inspect for output
6569
# --multiline Use multiline editor module
6670
# --nomultiline Don't use multiline editor module
6771
# --singleline Use singleline editor module
6872
# --nosingleline Don't use singleline editor module
6973
# --colorize Use colorization
7074
# --nocolorize Don't use colorization
71-
# --prompt prompt-mode
72-
# --prompt-mode prompt-mode
75+
# --prompt prompt-mode/--prompt-mode prompt-mode
7376
# Switch prompt mode. Pre-defined prompt modes are
7477
# `default', `simple', `xmp' and `inf-ruby'
7578
# --inf-ruby-mode Use prompt appropriate for inf-ruby-mode on emacs.
7679
# Suppresses --multiline and --singleline.
77-
# --simple-prompt Simple prompt mode
80+
# --sample-book-mode/--simple-prompt
81+
# Simple prompt mode
7882
# --noprompt No prompt mode
83+
# --single-irb Share self with sub-irb.
7984
# --tracer Display trace for each execution of commands.
8085
# --back-trace-limit n
8186
# Display backtrace top n and tail n. The default
8287
# value is 16.
83-
# -v, --version Print the version of irb
88+
# --verbose Show details
89+
# --noverbose Don't show details
90+
# -v, --version Print the version of irb
91+
# -h, --help Print help
92+
# -- Separate options of irb from the list of command-line args
8493
#
8594
# == Configuration
8695
#

lib/irb/lc/help-message

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
#
1111
#
1212
Usage: irb.rb [options] [programfile] [arguments]
13-
-f Suppress read of ~/.irbrc
13+
-f Suppress read of ~/.irbrc
1414
-d Set $DEBUG to true (same as `ruby -d')
1515
-r load-module Same as `ruby -r'
1616
-I path Specify $LOAD_PATH directory
1717
-U Same as `ruby -U`
1818
-E enc Same as `ruby -E`
1919
-w Same as `ruby -w`
2020
-W[level=2] Same as `ruby -W`
21-
--context-mode n Set n[0-3] to method to create Binding Object,
21+
--context-mode n Set n[0-4] to method to create Binding Object,
2222
when new workspace was created
2323
--echo Show result(default)
2424
--noecho Don't show result
@@ -31,8 +31,8 @@ Usage: irb.rb [options] [programfile] [arguments]
3131
--colorize Use colorization
3232
--nocolorize Don't use colorization
3333
--prompt prompt-mode/--prompt-mode prompt-mode
34-
Switch prompt mode. Pre-defined prompt modes are
35-
`default', `simple', `xmp' and `inf-ruby'
34+
Switch prompt mode. Pre-defined prompt modes are
35+
`default', `simple', `xmp' and `inf-ruby'
3636
--inf-ruby-mode Use prompt appropriate for inf-ruby-mode on emacs.
3737
Suppresses --multiline and --singleline.
3838
--sample-book-mode/--simple-prompt
@@ -41,8 +41,8 @@ Usage: irb.rb [options] [programfile] [arguments]
4141
--single-irb Share self with sub-irb.
4242
--tracer Display trace for each execution of commands.
4343
--back-trace-limit n
44-
Display backtrace top n and tail n. The default
45-
value is 16.
44+
Display backtrace top n and tail n. The default
45+
value is 16.
4646
--verbose Show details
4747
--noverbose Don't show details
4848
-v, --version Print the version of irb

0 commit comments

Comments
 (0)