summaryrefslogtreecommitdiffstats
path: root/lib/irb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-20 10:03:47 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-20 10:03:47 +0000
commit3d030940e9944c4c203d4ce7c9464e12c8fb1bce (patch)
tree7baec2d004c47206fbdfe1ad02b820166534c7ff /lib/irb
parent2865e2e29a01809bad323819df5556fdea7b9ed6 (diff)
downloadruby-3d030940e9944c4c203d4ce7c9464e12c8fb1bce.tar.gz
ruby-3d030940e9944c4c203d4ce7c9464e12c8fb1bce.tar.xz
ruby-3d030940e9944c4c203d4ce7c9464e12c8fb1bce.zip
* lib/irb/init.rb (IRB::IRB.parse_opts): add -I option to
irb. [ruby-dev:39243] * sprintf.c (rb_f_sprintf): sign bit extension should not be done if FPLUS flag is specified. [ruby-list:39224] * sprintf.c (rb_f_sprintf): do not prepend dots for negative numbers if FZERO is specified. [ruby-dev:39218] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/init.rb3
-rw-r--r--lib/irb/lc/help-message1
-rw-r--r--lib/irb/lc/ja/help-message1
3 files changed, 5 insertions, 0 deletions
diff --git a/lib/irb/init.rb b/lib/irb/init.rb
index 1df2926fa..8b6ff6264 100644
--- a/lib/irb/init.rb
+++ b/lib/irb/init.rb
@@ -126,6 +126,9 @@ module IRB
when "-r"
opt = ARGV.shift
@CONF[:LOAD_MODULES].push opt if opt
+ when "-I"
+ opt = ARGV.shift
+ $LOAD_PATH.push opt if opt
when /^-K(.)/
$KCODE = $1
when "--inspect"
diff --git a/lib/irb/lc/help-message b/lib/irb/lc/help-message
index 42e861a34..efc00bf14 100644
--- a/lib/irb/lc/help-message
+++ b/lib/irb/lc/help-message
@@ -14,6 +14,7 @@ Usage: irb.rb [options] [programfile] [arguments]
-m Bc mode (load mathn, fraction or matrix are available)
-d Set $DEBUG to true (same as `ruby -d')
-r load-module Same as `ruby -r'
+ -I path Specify $LOAD_PATH directory
--inspect Use `inspect' for output (default except for bc mode)
--noinspect Don't use inspect for output
--readline Use Readline extension module
diff --git a/lib/irb/lc/ja/help-message b/lib/irb/lc/ja/help-message
index 1cf980f6b..4b710c778 100644
--- a/lib/irb/lc/ja/help-message
+++ b/lib/irb/lc/ja/help-message
@@ -14,6 +14,7 @@ Usage: irb.rb [options] [programfile] [arguments]
-m bc$B%b!<%I(B($BJ,?t(B, $B9TNs$N7W;;$,$G$-$k(B)
-d $DEBUG $B$r(Btrue$B$K$9$k(B(ruby -d $B$HF1$8(B)
-r load-module ruby -r $B$HF1$8(B.
+ -I path $LOAD_PATH $B$K(B path $B$rDI2C$9$k(B.
--inspect $B7k2L=PNO$K(Binspect$B$rMQ$$$k(B(bc$B%b!<%I0J30$O%G%U%)%k%H(B).
--noinspect $B7k2L=PNO$K(Binspect$B$rMQ$$$J$$(B.
--readline readline$B%i%$%V%i%j$rMxMQ$9$k(B.