зеркало из https://github.com/github/ruby.git
* lib/irb/init.rb, lib/irb/lc/help-message,
lib/irb/lc/ja/help-message: add -w flag. [ruby-core:24594] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
79a3b7797f
Коммит
d3e7b990dc
|
@ -1,3 +1,8 @@
|
|||
Fri Apr 9 23:54:16 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* lib/irb/init.rb, lib/irb/lc/help-message,
|
||||
lib/irb/lc/ja/help-message: add -w flag. [ruby-core:24594]
|
||||
|
||||
Fri Apr 9 23:51:45 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* ext/socket/ipsocket.c (init_inetsock_internal),
|
||||
|
|
|
@ -135,6 +135,18 @@ module IRB
|
|||
@CONF[:MATH_MODE] = true
|
||||
when "-d"
|
||||
$DEBUG = true
|
||||
when "-w"
|
||||
$VERBOSE = true
|
||||
when /^-W(.+)?/
|
||||
opt = $1 || ARGV.shift
|
||||
case opt
|
||||
when "0"
|
||||
$VERBOSE = nil
|
||||
when "1"
|
||||
$VERBOSE = false
|
||||
else
|
||||
$VERBOSE = true
|
||||
end
|
||||
when /^-r(.+)?/
|
||||
opt = $1 || ARGV.shift
|
||||
@CONF[:LOAD_MODULES].push opt if opt
|
||||
|
|
|
@ -17,6 +17,8 @@ Usage: irb.rb [options] [programfile] [arguments]
|
|||
-I path Specify $LOAD_PATH directory
|
||||
-U Same as `ruby -U`
|
||||
-E enc Same as `ruby -E`
|
||||
-w Same as `ruby -w`
|
||||
-W[level=2] Same as `ruby -W`
|
||||
--inspect Use `inspect' for output (default except for bc mode)
|
||||
--noinspect Don't use inspect for output
|
||||
--readline Use Readline extension module
|
||||
|
|
|
@ -16,6 +16,8 @@ Usage: irb.rb [options] [programfile] [arguments]
|
|||
-I path $LOAD_PATH に path を追加する.
|
||||
-U ruby -U と同じ.
|
||||
-E enc ruby -E と同じ.
|
||||
-w ruby -w と同じ.
|
||||
-W[level=2] ruby -W と同じ.
|
||||
--inspect 結果出力にinspectを用いる(bcモード以外はデフォルト).
|
||||
--noinspect 結果出力にinspectを用いない.
|
||||
--readline readlineライブラリを利用する.
|
||||
|
|
Загрузка…
Ссылка в новой задаче