[前][次][番号順一覧][スレッド一覧]

ruby-changes:9545

From: yugui <ko1@a...>
Date: Sat, 27 Dec 2008 13:12:57 +0900 (JST)
Subject: [ruby-changes:9545] Ruby:r21085 (trunk, ruby_1_9_1): man/irb.1: adds -v, -h, -E and -U.

yugui	2008-12-27 13:12:38 +0900 (Sat, 27 Dec 2008)

  New Revision: 21085

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21085

  Log:
    man/irb.1: adds -v, -h, -E and -U.

  Modified files:
    branches/ruby_1_9_1/ChangeLog
    branches/ruby_1_9_1/man/irb.1
    trunk/ChangeLog
    trunk/man/irb.1

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21084)
+++ ChangeLog	(revision 21085)
@@ -1,3 +1,7 @@
+Sat Dec 27 13:10:43 2008  Yuki Sonoda (Yugui)  <yugui@y...>
+
+	* man/irb.1: adds -v, -h, -E and -U.
+
 Sat Dec 27 11:41:45 2008  Koichi Sasada  <ko1@a...>
 
 	* vm_insnhelper.c (vm_call_method, vm_call_cfunc): use original id instead of
Index: man/irb.1
===================================================================
--- man/irb.1	(revision 21084)
+++ man/irb.1	(revision 21085)
@@ -8,7 +8,9 @@
 .Sh SYNOPSIS
 .Nm
 .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 readline
 .Op Fl -prompt Ar mode
@@ -24,30 +26,56 @@
 .Op argument ...
 .Pp
 .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
 .Sh OPTIONS
 .Bl -tag -width "1234567890123" -compact
 .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
+Same as `ruby -d' .
 Sets
 .Li $DEBUG
-to true (same as `ruby -d')
+to true.
 .Pp
 .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
 .It Fl m
 Bc mode (load mathn, fraction or matrix are available)
 .Pp
-.It Fl r Ar load-module
-Same as `ruby -r'
+.It Fl r Ar library
+Same as `ruby -r'.
+Causes irb to load the library using require.
 .Pp
-.It Fl I Ar path
-Specifies
-.Li $LOAD_PATH
-directory
-.Pp
 .It Fl -inspect
 Uses `inspect' for output (default except for bc mode)
 .Pp
Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 21084)
+++ ruby_1_9_1/ChangeLog	(revision 21085)
@@ -1,3 +1,7 @@
+Sat Dec 27 13:09:36 2008  Yuki Sonoda (Yugui)  <yugui@y...>
+
+	* man/irb.1: adds -v, -h, -E, and -U.
+
 Sat Dec 27 09:48:54 2008  Koichi Sasada  <ko1@a...>
 
 	* vm.c (Init_VM): create and define TOPLEVEL_BINDING at first.
Index: ruby_1_9_1/man/irb.1
===================================================================
--- ruby_1_9_1/man/irb.1	(revision 21084)
+++ ruby_1_9_1/man/irb.1	(revision 21085)
@@ -8,7 +8,9 @@
 .Sh SYNOPSIS
 .Nm
 .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 readline
 .Op Fl -prompt Ar mode
@@ -24,30 +26,56 @@
 .Op argument ...
 .Pp
 .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
 .Sh OPTIONS
 .Bl -tag -width "1234567890123" -compact
 .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
+Same as `ruby -d' .
 Sets
 .Li $DEBUG
-to true (same as `ruby -d')
+to true.
 .Pp
 .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
 .It Fl m
 Bc mode (load mathn, fraction or matrix are available)
 .Pp
-.It Fl r Ar load-module
-Same as `ruby -r'
+.It Fl r Ar library
+Same as `ruby -r'.
+Causes irb to load the library using require.
 .Pp
-.It Fl I Ar path
-Specifies
-.Li $LOAD_PATH
-directory
-.Pp
 .It Fl -inspect
 Uses `inspect' for output (default except for bc mode)
 .Pp

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]