man/irb.1: adds -v, -h, -E and -U.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b30b998966
commit
e434135ecb
@ -1,3 +1,7 @@
|
|||||||
|
Sat Dec 27 13:10:43 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||||
|
|
||||||
|
* man/irb.1: adds -v, -h, -E and -U.
|
||||||
|
|
||||||
Sat Dec 27 11:41:45 2008 Koichi Sasada <ko1@atdot.net>
|
Sat Dec 27 11:41:45 2008 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* vm_insnhelper.c (vm_call_method, vm_call_cfunc): use original id instead of
|
* vm_insnhelper.c (vm_call_method, vm_call_cfunc): use original id instead of
|
||||||
|
50
man/irb.1
50
man/irb.1
@ -8,7 +8,9 @@
|
|||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl -version
|
.Op Fl -version
|
||||||
.Op Fl Idfmrv
|
.Op Fl dfm
|
||||||
|
.Op Fl I Ar directory
|
||||||
|
.Op Fl r Ar library
|
||||||
.Op Fl - Ns Oo no Oc Ns inspect
|
.Op Fl - Ns Oo no Oc Ns inspect
|
||||||
.Op Fl - Ns Oo no Oc Ns readline
|
.Op Fl - Ns Oo no Oc Ns readline
|
||||||
.Op Fl -prompt Ar mode
|
.Op Fl -prompt Ar mode
|
||||||
@ -24,29 +26,55 @@
|
|||||||
.Op argument ...
|
.Op argument ...
|
||||||
.Pp
|
.Pp
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
irb is the REPL(read-eval&print loop) environment for Ruby programs.
|
.Nm
|
||||||
|
is the REPL(read-eval&print loop) environment for Ruby programs.
|
||||||
.Pp
|
.Pp
|
||||||
.Sh OPTIONS
|
.Sh OPTIONS
|
||||||
.Bl -tag -width "1234567890123" -compact
|
.Bl -tag -width "1234567890123" -compact
|
||||||
.Pp
|
.Pp
|
||||||
|
.It Fl -version
|
||||||
|
Prints the version of
|
||||||
|
.Nm .
|
||||||
|
.Pp
|
||||||
|
.It Fl E Ar external Ns Op : Ns Ar internal
|
||||||
|
.It Fl -encoding Ar external Ns Op : Ns Ar internal
|
||||||
|
Same as `ruby -E' .
|
||||||
|
Specifies the default value(s) for external encodings and internal encoding. Values should be separated with colon (:).
|
||||||
|
|
||||||
|
You can ommit the one for internal encodings, then the value
|
||||||
|
.Pf ( Li "Encoding.default_internal" ) will be nil.
|
||||||
|
.Pp
|
||||||
|
.It Fl I Ar path
|
||||||
|
Same as `ruby -I' .
|
||||||
|
Specifies
|
||||||
|
.Li $LOAD_PATH
|
||||||
|
directory
|
||||||
|
.Pp
|
||||||
|
.It Fl U
|
||||||
|
Same as `ruby -U' .
|
||||||
|
Sets the defalut value for internal encodings
|
||||||
|
.Pf ( Li "Encoding.default_internal" ) to UTF-8.
|
||||||
|
.Pp
|
||||||
.It Fl d
|
.It Fl d
|
||||||
|
Same as `ruby -d' .
|
||||||
Sets
|
Sets
|
||||||
.Li $DEBUG
|
.Li $DEBUG
|
||||||
to true (same as `ruby -d')
|
to true.
|
||||||
.Pp
|
.Pp
|
||||||
.It Fl f
|
.It Fl f
|
||||||
Suppresses read of ~/.irbrc
|
Suppresses read of
|
||||||
|
.Pa ~/.irbrc .
|
||||||
|
.Pp
|
||||||
|
.It Fl h
|
||||||
|
.It Fl -help
|
||||||
|
Prints a summary of the options.
|
||||||
.Pp
|
.Pp
|
||||||
.It Fl m
|
.It Fl m
|
||||||
Bc mode (load mathn, fraction or matrix are available)
|
Bc mode (load mathn, fraction or matrix are available)
|
||||||
.Pp
|
.Pp
|
||||||
.It Fl r Ar load-module
|
.It Fl r Ar library
|
||||||
Same as `ruby -r'
|
Same as `ruby -r'.
|
||||||
.Pp
|
Causes irb to load the library using require.
|
||||||
.It Fl I Ar path
|
|
||||||
Specifies
|
|
||||||
.Li $LOAD_PATH
|
|
||||||
directory
|
|
||||||
.Pp
|
.Pp
|
||||||
.It Fl -inspect
|
.It Fl -inspect
|
||||||
Uses `inspect' for output (default except for bc mode)
|
Uses `inspect' for output (default except for bc mode)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user