diff options
author | Sho Ito <i.sho.0628@gmail.com> | 2019-08-12 00:11:34 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-08-12 16:11:54 +0900 |
commit | 765cc17c086024540bc09124bd3628c539faa7b0 (patch) | |
tree | 438100500f52f236279e9521a10b73e6b15b7774 /man | |
parent | 0d0ff8277fcea4584aa33b8b180a4ade7b90590e (diff) |
Update IRB man page
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2341
Diffstat (limited to 'man')
-rw-r--r-- | man/irb.1 | 44 |
1 files changed, 36 insertions, 8 deletions
@@ -1,5 +1,5 @@ .\"Ruby is copyrighted by Yukihiro Matsumoto <matz@netlab.jp>. -.Dd April 20, 2017 +.Dd August 11, 2019 .Dt IRB \&1 "Ruby Programmer's Reference Guide" .Os UNIX .Sh NAME @@ -8,11 +8,16 @@ .Sh SYNOPSIS .Nm .Op Fl -version -.Op Fl dfm +.Op Fl dfUw .Op Fl I Ar directory .Op Fl r Ar library +.Op Fl E Ar external Ns Op : Ns Ar internal +.Op Fl W Ns Op Ar level .Op Fl - Ns Oo no Oc Ns inspect .Op Fl - Ns Oo no Oc Ns readline +.Op Fl - Ns Oo no Oc Ns echo +.Op Fl - Ns Oo no Oc Ns colorize +.Op Fl - Ns Oo no Oc Ns verbose .Op Fl -prompt Ar mode .Op Fl -prompt-mode Ar mode .Op Fl -inf-ruby-mode @@ -20,7 +25,6 @@ .Op Fl -noprompt .Op Fl -tracer .Op Fl -back-trace-limit Ar n -.Op Fl -irb_debug Ar n .Op Fl - .Op program_file .Op argument ... @@ -65,6 +69,13 @@ to true. Suppresses read of .Pa ~/.irbrc . .Pp +.It Fl w +Same as `ruby -w' . +.Pp +.Pp +.It Fl W +Same as `ruby -W' . +.Pp .It Fl h .It Fl -help Prints a summary of the options. @@ -85,6 +96,27 @@ Uses Readline extension module. .It Fl -noreadline Doesn't use Readline extension module. .Pp +.Pp +.It Fl -echo +Show result(default). +.Pp +.It Fl -noecho +Don't show result. +.Pp +.Pp +.It Fl -colorize +Use colorization. +.Pp +.It Fl -nocolorize +Don't use colorization. +.Pp +.Pp +.It Fl -verbose +Show details. +.Pp +.It Fl -noverbose +Don't show details. +.Pp .It Fl -prompt Ar mode .It Fl -prompt-mode Ar mode Switch prompt mode. Pre-defined prompt modes are @@ -109,10 +141,6 @@ Displays backtrace top and tail .Ar n Ns . The default value is 16. -.Pp -.It Fl -irb_debug Ar n -Sets internal debug level to n (not for popular use) -.Pp .El .Pp .Sh ENVIRONMENT @@ -138,7 +166,7 @@ Personal irb initialization. .Dl irb(main):001:0> Ic 1 + 1 .Dl 2 .Dl irb(main):002:0> Ic def t(x) -.Dl irb(main):003:1> Ic x+1 +.Dl irb(main):003:1> Ic x + 1 .Dl irb(main):004:1> Ic end .Dl => :t .Dl irb(main):005:0> Ic t(3) |