[#40961] [Bug #3137] complex.rb changes exceptions of Math — Yusuke Endoh <redmine@...>

Bug #3137: complex.rb changes exceptions of Math

15 messages 2010/04/12
[#40967] Re: [Bug #3137] complex.rb changes exceptions of Math — keiju@... (石塚圭樹) 2010/04/13

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

[#41038] Windows と DL が使用条件の libffi — Aaron Patterson <aaron.patterson@...>

こんにちは!アーロンです。

17 messages 2010/04/22
[#41039] Re: Windows と DL が使用条件の libffi — "U.Nakamura" <usa@...> 2010/04/22

こんにちは、なかむら(う)です。

[#41040] Re: Windows と DL が使用条件の libffi — "NARUSE, Yui" <naruse@...> 2010/04/22

成瀬です。

[#41059] Re: Windows と DL が使用条件の libffi — Aaron Patterson <aaron.patterson@...> 2010/04/26

2010/4/21 NARUSE, Yui <naruse@airemix.jp>:

[#41060] Re: Windows と DL が使用条件の libffi — Yugui <yugui@...> 2010/04/26

2010/4/26 Aaron Patterson <aaron.patterson@gmail.com>:

[#41067] [Feature #3203] LazySweepGC patch — Narihiro Nakamura <redmine@...>

Feature #3203: LazySweepGC patch

15 messages 2010/04/26
[#41069] Re: [Feature #3203] LazySweepGC patch — Yusuke ENDOH <mame@...> 2010/04/27

遠藤です。

[#41104] Rails3 M17N — Yukihiro Matsumoto <matz@...>

まつもと ゆきひろです

29 messages 2010/04/30
[#41111] Re: Rails3 M17N — Urabe Shyouhei <shyouhei@...> 2010/04/30

Yukihiro Matsumoto =E3=81=95=E3=82=93=E3=81=AF=E6=9B=B8=E3=81=8D=E3=81=BE=

[#41113] Re: Rails3 M17N — Yukihiro Matsumoto <matz@...> 2010/04/30

まつもと ゆきひろです

[ruby-dev:40979] [Bug #1031] -U オプションの説明が --help にない

From: Yusuke Endoh <redmine@...>
Date: 2010-04-13 16:11:04 UTC
List: ruby-dev #40979
チケット #1031 が更新されました。 (by Yusuke Endoh)


遠藤です。

# こんなしょうもないチケットはさっさと決めて閉じてほしい……。


2010年3月25日15:11 Urabe Shyouhei <shyouhei@ruby-lang.org>:
> まあみんなでうなっててもしょうがないので改善案を出してみましょうか。

ruby -h の想定ユーザは初心者とコマンドラインで作業する人なので、
掲載基準も「普通によく使われるオプション」と「ワンライナーでよく
使われるオプション」に限定したらいいと思いました。この基準で現在
掲載されているオプションを主観的に評価してみました。

○普通によく使われる
  - 1 級: -e -I -r -v (-h)
  - 2 級: -d -T -w -W
  - 3 級: -E (-U)

○ワンライナーでよく使われる
  - 1 級: -l -n -p
  - 2 級: -0 -a -F -i

以上から、

  - ruby -h から -c -s -S -x --version を削除する
  - -U を追加する

でどうでしょう。--copyright は政治的な理由で必要かもしれないので
残しました (といってもまつもとさんの名前しか出ないので LEGAL の
代わりにはならないようですが) 。


diff --git a/ruby.c b/ruby.c
index 5c1eef0..2a36cb6 100644
--- a/ruby.c
+++ b/ruby.c
@@ -135,7 +135,6 @@ usage(const char *name)
     static const char *const usage_msg[] = {
 	"-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]",
@@ -147,13 +146,11 @@ usage(const char *name)
 	"-n              assume 'while gets(); ... end' loop around your script",
 	"-p              assume loop like -n but print line also like sed",
 	"-rlibrary       require the library, before executing your script",
-	"-s              enable some switch parsing for switches after script name",
-	"-S              look for the script using PATH environment variable",
 	"-T[level=1]     turn on tainting checks",
+	"-U              set internal character encoding as UTF-8",
 	"-v              print version number, then turn on verbose mode",
 	"-w              turn warnings on for your script",
 	"-W[level=2]     set warning level; 0=silence, 1=medium, 2=verbose",
-	"-x[directory]   strip off text before #!ruby line and perhaps cd to directory",
 	"--copyright     print the copyright",
 	"--version       print the version",
 	NULL

--long-help なり -v -h なりが欲しい人は、自分で文案を作成して
提案すればいいと思います。

-- 
Yusuke ENDOH <mame@tsg.ne.jp>
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1031

----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next