Should --verbose be equal to -v?

Yuguie$B$G$9!#e(B

e$B%j%U%!%l%s%9%^%K%e%"%k$de(Bmane$B$K$h$l$P5/F0%*%W%7%g%se(B–verbose
e$B$Oe(B-ve$B$NF15A8l$NH&$G$9$,!"$=$N$h$&$K$J$C$F$$$^$;$s!#e(B
-ve$B$O%P!<%8%g%sHV9f$r=PNO$7$^$9$,!"e(B–verbosee$B$O$7$^$;$s!#e(B
e$B$3$l$O0U?^$5$l$?$3$H$G$7$g$&$+!#e(B
trunke$B!"e(B1.8e$B$H$b$KF1$8$G$9!#e(B

Index: ruby.c

— ruby.c (revision 15738)
+++ ruby.c (working copy)
@@ -873,6 +873,7 @@
else if (strcmp(“verbose”, s) == 0) {
opt->verbose = 1;
ruby_verbose = Qtrue;

  •            ruby_show_version();
      }
      else if (strcmp("yydebug", s) == 0)
    opt->yydebug = 1;

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:34011] Should --verbose be equal to -v ?”
on Mon, 10 Mar 2008 15:01:09 +0900, Yugui [email protected]
writes:

|e$B%j%U%!%l%s%9%^%K%e%“%k$de(Bmane$B$K$h$l$P5/F0%*%W%7%g%se(B–verbose
|e$B$Oe(B-ve$B$NF15A8l$NH&$G$9$,!”$=$N$h$&$K$J$C$F$$$^$;$s!#e(B
|-ve$B$O%P!<%8%g%sHV9f$r=PNO$7$^$9$,!"e(B–verbosee$B$O$7$^$;$s!#e(B
|e$B$3$l$O0U?^$5$l$?$3$H$G$7$g$&$+!#e(B
|trunke$B!"e(B1.8e$B$H$b$KF1$8$G$9!#e(B

e$B0U?^$7$?$3$H$G$9!#%I%-%e%a%s%H$r=q$-49$($k$Y$-$G$7$g$&!#e(B

e$B@>;3OB9-$G$9!#e(B

At Mon, 10 Mar 2008 15:22:12 +0900,
Yukihiro M. wrote:

|e$B%j%U%!%l%s%9%^%K%e%"%k$de(Bmane$B$K$h$l$P5/F0%*%W%7%g%se(B–verbose
|e$B$Oe(B-ve$B$NF15A8l$NH&$G$9$,!"$=$N$h$&$K$J$C$F$$$^$;$s!#e(B
|-ve$B$O%P!<%8%g%sHV9f$r=PNO$7$^$9$,!"e(B–verbosee$B$O$7$^$;$s!#e(B
|e$B$3$l$O0U?^$5$l$?$3$H$G$7$g$&$+!#e(B
|trunke$B!"e(B1.8e$B$H$b$KF1$8$G$9!#e(B

e$B0U?^$7$?$3$H$G$9!#%I%-%e%a%s%H$r=q$-49$($k$Y$-$G$7$g$&!#e(B

ruby -he$B$K$Oe(B–verbosee$B$,$J$$$h$&$G$9!#e(B
e$B$=$l$+$ie(Btrunke$B0J30$Ne(Bruby.1e$B$Ke(B-W[level]e$B$,$J$$$h$&$G$9!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

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 -he$B$K$Oe(B–verbosee$B$,$J$$$h$&$G$9!#e(B

–verbosee$B$,$J$$$N$O$o$6$H$G$9!#A4It<h$j9~$`$H0l2hLL$K<}$^$je(B
e$B$^$;$s!#e(B

|e$B$=$l$+$ie(Btrunke$B0J30$Ne(Bruby.1e$B$Ke(B-W[level]e$B$,$J$$$h$&$G$9!#e(B

e$B$3$l$OK:$l$F$^$7$?!#C/$+%3%_%C%H$7$F$/$@$5$k$H$&$l$7$$$G$9!#e(B

e$B@>;3OB9-$G$9!#e(B

At Mon, 10 Mar 2008 16:30:00 +0900,
Yukihiro M. wrote:

|ruby -he$B$K$Oe(B–verbosee$B$,$J$$$h$&$G$9!#e(B

–verbosee$B$,$J$$$N$O$o$6$H$G$9!#A4It<h$j9~$`$H0l2hLL$K<}$^$je(B
e$B$^$;$s!#e(B

e$B0l2hLL$K$*$5$a$k$?$a$Ke(B24e$B9T0JFb$K$7$h$&$H$7$F$$$k$N$J$i!"e(B
trunke$B$NJ}$O$9$G$KD6$($F$7$^$C$F$$$k$h$&$G$9!#e(B

% 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)


|ZnZ(e$B%<%C%He(B e$B%(%Le(B e$B%<%C%He(B)
|e$B@>;3OB9-e(B(Kazuhiro NISHIYAMA)

#-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
#-#-# http://www.sw.it.aoyama.ac.jp mailto:[email protected]

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B
e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

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:

|At Mon, 10 Mar 2008 16:30:00 +0900,
|Yukihiro M. wrote:
|>
|> |ruby -he$B$K$Oe(B–verbosee$B$,$J$$$h$&$G$9!#e(B
|>
|> --verbosee$B$,$J$$$N$O$o$6$H$G$9!#A4It<h$j9~$`$H0l2hLL$K<}$^$je(B
|> e$B$^$;$s!#e(B
|
|e$B0l2hLL$K$*$5$a$k$?$a$Ke(B24e$B9T0JFb$K$7$h$&$H$7$F$$$k$N$J$i!"e(B
|trunke$B$NJ}$O$9$G$KD6$($F$7$^$C$F$$$k$h$&$G$9!#e(B

e$B$&$&$`!#$@$+$i$H$$$C$FL5@)8B$KA}$d$95$$K$O$J$i$J$$$N$G$9$,!#e(B
e$B!Ve(B-Ke$B!W!“!Ve(B-Se$B!W$H$+$r$O$:$9$+!#$”$H!Ve(B–enable-FEATUREe$B!W$be(B-he$B$Ke(B
e$B$OMW$i$J$$5$$,$9$k!#e(B

e$B@>;3OB9-$G$9!#e(B

At Mon, 10 Mar 2008 22:53:13 +0900,
Yukihiro M. wrote:

|e$B0l2hLL$K$*$5$a$k$?$a$Ke(B24e$B9T0JFb$K$7$h$&$H$7$F$$$k$N$J$i!"e(B
|trunke$B$NJ}$O$9$G$KD6$($F$7$^$C$F$$$k$h$&$G$9!#e(B

e$B$&$&$`!#$@$+$i$H$$$C$FL5@)8B$KA}$d$95$$K$O$J$i$J$$$N$G$9$,!#e(B

e$B1[$($F$$$k$N$G!"$*$5$a$h$&$H$7$F$$$k$N$J$i!"8:$i$5$J$$$N$+$J!"e(B
e$B$H$$$&$D$b$j$G$7$?!#e(B

e$B!Ve(B-Ke$B!W!"!Ve(B-Se$B!W$H$+$r$O$:$9$+!#$"$H!Ve(B–enable-FEATUREe$B!W$be(B-he$B$Ke(B
e$B$OMW$i$J$$5$$,$9$k!#e(B

e$B!Ve(B–enable/–disable-FEATUREe$B!W$H!Ve(B–enable/–disable=FEATUREe$B!W$O2#$Ke(B
e$BJB$s$G$$$k$H0c$$e(B(-e$B$He(B=)e$B$,$o$+$j$K$/$$$N$G!"e(B-he$B$+$i30$9$N$K;?@.$G$9!#e(B
e$B!Ve(B-Ke$B!W$b!Ve(B-Ee$B!W$,DI2C$5$l$?$N$G30$9$N$K;?@.$G$9!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:34045] Re: Should --verbose be equal to -v ?”
on Fri, 14 Mar 2008 13:48:14 +0900, Yugui [email protected]
writes:

|mane$B$rD>$7$^$7$?!#1QJ8$K<+?.$O$J$$$G$9$,!#e(B

e$B$"$j$,$H$&$4$6$$$^$9!#D>$7$F$b$i$C$H$$$FJ86g8@$&$N$O?46l$7$$e(B
e$B$N$G$9$,!"e(B-ve$B$He(B–verboese$B$O%(%s%H%j$rJ,$1$F$7$^$C$?J}$,$9$C$-$je(B
e$B$9$k$h$&$J5$$,$7$^$9!#1QJ8$Oe(B(e$B;d$b<+?.$O$J$$$G$9$,e(B)e$B$3$l$GNI$$e(B
e$B$H;W$$$^$9!#e(B

Yuguie$B$G$9!#e(B

On 2008/03/10, at 15:22, Yukihiro M. wrote:

e$B%j%U%!%l%s%9%^%K%e%"%k$de(Bmane$B$K$h$l$P5/F0%*%W%7%g%se(B–verbose
|e$B$Oe(B-ve$B$NF15A8l$NH&$G$9$,!"$=$N$h$&$K$J$C$F$$$^$;$s!#e(B
|-ve$B$O%P!<%8%g%sHV9f$r=PNO$7$^$9$,!"e(B–verbosee$B$O$7$^$;$s!#e(B
|e$B$3$l$O0U?^$5$l$?$3$H$G$7$g$&$+!#e(B
|trunke$B!"e(B1.8e$B$H$b$KF1$8$G$9!#e(B

e$B0U?^$7$?$3$H$G$9!#%I%-%e%a%s%H$r=q$-49$($k$Y$-$G$7$g$&!#e(B

mane$B$rD>$7$^$7$?!#1QJ8$K<+?.$O$J$$$G$9$,!#e(B

Index: ruby.1

— 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

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:34051] Re: Should --verbose be equal to -v ?”
on Fri, 14 Mar 2008 18:03:59 +0900, Yugui [email protected]
writes:

|On 2008/03/14, at 14:48, Yukihiro M. wrote:
|> -ve$B$He(B–verboese$B$O%(%s%H%j$rJ,$1$F$7$^$C$?J}$,$9$C$-$je(B
|> e$B$9$k$h$&$J5$$,$7$^$9!#e(B
|
|e$BJ,$1$F$_$^$7$?!#e(B

e$B$$$$$s$8$c$J$$$G$7$g$&$+!#e(B

Yuguie$B$G$9!#e(B

On 2008/03/14, at 14:48, Yukihiro M. wrote:

-ve$B$He(B–verboese$B$O%(%s%H%j$rJ,$1$F$7$^$C$?J}$,$9$C$-$je(B
e$B$9$k$h$&$J5$$,$7$^$9!#e(B

e$BJ,$1$F$_$^$7$?!#e(B

e$B%(%s%H%j$N=g$O$3$l$GNI$$$G$7$g$&$+!#e(B–disable-gemse$B$N$He(B
e$B$-$bLB$C$?$s$G$9$,!#e(B
e$B:#$Oe(B
(1) e$BFCJL$J%%W%7%g%se(B(–copyright, --version)
(2) e$B0z?t$N$J$$e(B1e$BJ8;z%
%W%7%g%se(B(e$B%"%k%U%!%Y%C%H=ge(B)
(3) e$B0z?t$N$"$ke(B1e$BJ8;z%%W%7%g%se(B(e$B%"%k%U%!%Y%C%H=ge(B)
(4) e$BD9$$%
%W%7%g%se(B(e$B<-=q<0e(B)

e$B$K$J$C$F$^$9!#$3$l$,8+$d$9$$$@$m$&$J!"$H$O;W$$$^$9$,e(B

  • e$B!VFCJL$J%*%W%7%g%s!W$G$J$/!"e(B
  • e$BBP1~$9$ke(B1e$BJ8;z%%W%7%g%s$,B8:_$7$J$$e(B
    e$B%
    %W%7%g%s$H$$$&$N$Oe(B–disable-gemse$B$,=i=P$N$h$&$G$7$?!#e(B
    e$B$G!":#2se(B–verbosee$B$N%(%s%H%j$rJ,$1$k$He(B2e$B$D$a$K$J$ke(B
    e$B$o$1$G$9!#e(B

Index: ruby.1

— 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

Yuguie$B$G$9!#e(B

On 2008/03/14, at 21:28, Yukihiro M. wrote:

||e$BJ,$1$F$_$^$7$?!#e(B
|
|e$B$$$$$s$8$c$J$$$G$7$g$&$+!#e(B

e$B$"!"%3%_%C%H$7$F$/$@$5$$$C$F$3$H$G$9!#e(B

e$B%3%%C%H8"$,$"$j$^$;$s!#e(B
e$B%j%j!<%9$N$*<jEA$$$9$kM=Dj$H$$$&$+!":{ED$5$s$H$=$s$J$OC$O$7e(B
e$B$F$
$j$^$9$N$G!"$3$N5!2q$K%3%
%C%H8"8B$r!"$/$@$5$$!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:34053] Re: Should --verbose be equal to -v ?”
on Fri, 14 Mar 2008 21:25:02 +0900, Yukihiro M.
[email protected] writes:

||e$BJ,$1$F$_$^$7$?!#e(B
|
|e$B$$$$$s$8$c$J$$$G$7$g$&$+!#e(B

e$B$“!”%3%_%C%H$7$F$/$@$5$$$C$F$3$H$G$9!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:34055] Re: Should --verbose be equal to -v ?”
on Fri, 14 Mar 2008 21:53:32 +0900, Yugui [email protected]
writes:

|e$B%3%%C%H8"$,$“$j$^$;$s!#e(B
|e$B%j%j!<%9$N$*<jEA$$$9$kM=Dj$H$$$&$+!”:{ED$5$s$H$=$s$J$OC$O$7e(B
|e$B$F$
$j$^$9$N$G!"$3$N5!2q$K%3%
%C%H8"8B$r!"$/$@$5$$!#e(B

[email protected]e$B$^$Ge(B

  • e$B%"%+%&%s%HL>8uJde(B(yugui?)
  • ssh2e$B8x3+80e(B

e$B$re(BGPGe$B$G=pL>$7$FAw$C$F$/$@$5$$!#e(B