[#34011] Should --verbose be equal to -v ? — Yugui <yugui@...>

Yuguiです。

15 messages 2008/03/10
[#34012] Re: Should --verbose be equal to -v ? — Yukihiro Matsumoto <matz@...> 2008/03/10

まつもと ゆきひろです

[#34105] rational.rb, complex.rb and mathn.rb — Tadayoshi Funaba <tadf@...>

rational と complex が組み込みになったことで、lib/mathn.rb の意義は薄

29 messages 2008/03/22
[#34106] Re: rational.rb, complex.rb and mathn.rb — Tadayoshi Funaba <tadf@...> 2008/03/22

現時点で rational.rb と complex.rb を残しているのは、それが無難だから

[#34107] Re: rational.rb, complex.rb and mathn.rb — Tadayoshi Funaba <tadf@...> 2008/03/22

で、かなり選択肢を絞った叩き台です。

[#34120] Re: rational.rb, complex.rb and mathn.rb — keiju@... (石塚圭樹) 2008/03/24

けいじゅ@いしつかです.

[#34125] Re: rational.rb, complex.rb and mathn.rb — Shin-ichiro HARA <sinara@...> 2008/03/25

原です。

[#34130] Re: rational.rb, complex.rb and mathn.rb — Tadayoshi Funaba <tadf@...> 2008/03/25

> 私も Complex の組み込みは Rational とは比較にならないくらい、仕様が決め

[#34158] Complex組み込み — Masahiro TANAKA <masa16.tanaka@...>

Complexが組み込みになるそうですが、これはcomplex.rbを踏襲して、

49 messages 2008/03/27
[#34161] Re: Complex組み込み — Shin-ichiro HARA <sinara@...> 2008/03/28

原です。

[#34168] Re: Complex組み込み — Tadayoshi Funaba <tadf@...> 2008/03/28

> 今までの Complex は、complex.rb にほぼ残して、たとえば Rational 成分

[#34186] Re: Complex組み込み — Shin-ichiro HARA <sinara@...> 2008/03/31

原です。

[#34187] Re: Complex組み込み — Tadayoshi Funaba <tadf@...> 2008/03/31

> そうです。Complex が難しい、という話を書いておくと、

[#34193] Re: Complex組み込み — Yukihiro Matsumoto <matz@...> 2008/03/31

まつもと ゆきひろです

[#34203] Re: Complex組み込み — Tadayoshi Funaba <tadf@...> 2008/04/01

> |僕としては、/ 演算子の振舞いについて前向きに検討してほしいです。

[#34215] Re: Complex組み込み — Yukihiro Matsumoto <matz@...> 2008/04/02

まつもと ゆきひろです

[#34166] Re: Complex組み込み — Tadayoshi Funaba <tadf@...> 2008/03/28

> となるようですが、別の実装として、

[ruby-dev:34051] Re: Should --verbose be equal to -v ?

From: Yugui <yugui@...>
Date: 2008-03-14 09:03:59 UTC
List: ruby-dev #34051
Yuguiです。

On 2008/03/14, at 14:48, Yukihiro Matsumoto wrote:
> -vと--verboesはエントリを分けてしまった方がすっきり
> するような気がします。

分けてみました。

エントリの順はこれで良いでしょうか。--disable-gemsのと 
きも迷ったんですが。
今は
(1)  特別なオプション(--copyright, --version)
(2) 引数のない1文字オプション(アルファベット順)
(3) 引数のある1文字オプション(アルファベット順)
(4) 長いオプション(辞書式)

になってます。これが見やすいだろうな、とは思いますが
* 「特別なオプション」でなく、
* 対応する1文字オプションが存在しない
オプションというのは--disable-gemsが初出のようでした。 
で、今回--verboseのエントリを分けると2つめになる 
わけです。



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


-- 
Yugui
yugui@yugui.sakura.ne.jp
http://idm.s9.xrea.com



In This Thread