In message “Re: [ruby-dev:34013] Re: Should --verbose be equal to -v ?”
on Mon, 10 Mar 2008 15:47:57 +0900, Kazuhiro NISHIYAMA [email protected] writes:
% ruby -h|wc
24 190 1478
% ruby-trunk -h|wc
27 211 1706
% diff -u =(ruby -h) =(ruby-trunk -h)
— /tmp/zshFyhLLc 2008-03-10 16:39:15.000000000 +0900
+++ /tmp/zshXFdIT7 2008-03-10 16:39:15.000000000 +0900
@@ -1,10 +1,11 @@
-Usage: ruby [switches] [–] [programfile] [arguments]
+Usage: ruby-trunk [switches] [–] [programfile] [arguments]
-0[octal] specify record separator (\0, if no argument)
-a autosplit mode with -n or -p (splits $_ into $F)
-c check syntax only
-Cdirectory cd to directory, before executing your script
-d set debugging flags (set $DEBUG to true)
-e ‘command’ one line of script. Several -e’s allowed. Omit
[programfile]
-Eencoding specifies the character encoding for the program
codes
-Fpattern split() pattern for autosplit (-a)
-i[extension] edit ARGV files in place (make backup if extension
supplied)
-Idirectory specify $LOAD_PATH directory (may be used more than
once)
@@ -20,5 +21,7 @@
-w turn warnings on for your script
-W[level] set warning level; 0=silence, 1=medium, 2=verbose
(default)
-x[directory] strip off text before #!ruby line and perhaps cd to
directory
–enable/–disable-FEATURE --enable/–disable=FEATURE enable/disable
FEATUREs
gems: gem libraries, rubyopt: RUBYOPT env, or all
–copyright print the copyright
–version print the version
%
-Eencoding specifies the character encoding for the program codes
e$B$NBe$o$j$Ke(B
-Eencoding specifies the character encoding for the source code
e$B$H$+$NJ}$O$I$&$G$7$g$&$+!#e(B
e$B59$7$/$*4j$$$7$^$9!#e(B Martin.
At 16:43 08/03/10, Kazuhiro NISHIYAMA wrote:
e$B0l2hLL$K$*$5$a$k$?$a$Ke(B24e$B9T0JFb$K$7$h$&$H$7$F$$$k$N$J$i!"e(B
-Usage: ruby [switches] [–] [programfile] [arguments]
-Idirectory specify $LOAD_PATH directory (may be used more than once)
In message “Re: [ruby-dev:34015] Re: Should --verbose be equal to -v ?”
on Mon, 10 Mar 2008 16:43:43 +0900, Kazuhiro NISHIYAMA [email protected] writes:
— ruby.1 (revision 15774)
+++ ruby.1 (working copy)
@@ -302,12 +302,15 @@
.Pp
.It Fl v
.It Fl -verbose
-Enables verbose mode. Ruby will print its version at the beginning,
-and set the variable
+Enables verbose mode. Ruby will sets the variable
.Li “$VERBOSE”
-to true. Some methods print extra messages if this variable is true.
+to true. Some methods print extra messages if this variable is true.
If this switch is given, and no other switches are present, Ruby quits
-after printing its version.
+immediately. For
+.Fl v
+switch, not
+.Fl -verbose Ns
+, Ruby also prints its version at the beginning.
.Pp
.It Fl w
Enables verbose mode without printing version message at the
— ruby.1 (revision 15781)
+++ ruby.1 (working copy)
@@ -24,6 +24,7 @@
.Op Fl r Ar library
.Op Fl x Ns Op Ar directory
.Op Fl -disable-gems
+.Op Fl -verbose
.Op Fl -
.Op Ar program_file
.Op Ar argument …
@@ -301,7 +302,6 @@
.Xr csh 1 .
.Pp
.It Fl v
-.It Fl -verbose
Enables verbose mode. Ruby will print its version at the beginning,
and set the variable
.Li “$VERBOSE”
@@ -340,6 +340,14 @@
.It Fl -disable-gems
Disables RubyGems libraries. By default, Ruby will load the latest
version of each installed gem.
+.Pp
+.It Fl -verbose
+Enables verbose mode without printing version message at the
+beginning. It sets the
+.Li “$VERBOSE”
+variable to true.
+If this switch is given, and no other switches are present, Ruby quits
+after printing its version.
.El
.Pp
.Sh ENVIRONMENT