From: Yusuke Endoh Date: 2010-04-14T01:11:04+09:00 Subject: [ruby-dev:40979] [Bug #1031] -U オプションの説明が --help にない チケット #1031 が更新されました。 (by Yusuke Endoh) 遠藤です。 # こんなしょうもないチケットはさっさと決めて閉じてほしい……。 2010年3月25日15:11 Urabe Shyouhei : > まあみんなでうなっててもしょうがないので改善案を出してみましょうか。 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 ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1031 ---------------------------------------- http://redmine.ruby-lang.org