1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

ri now reads command-line options from RI environment variable

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
dave 2004-01-10 17:11:24 +00:00
parent 99cb7b0c19
commit 63a4868d7f
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,13 @@
Sun Jan 11 02:07:47 2004 Dave Thomas <dave@pragprog.com>
* lib/rdoc/ri/ri_options.rb (RI::Options::OptionList::OptionList):
Also accept command line options via the 'RI' environment variable.
Sun Jan 11 02:07:47 2004 Dave Thomas <dave@pragprog.com>
* lib/rdoc/ri/ri_options.rb (RI::Options::OptionList::OptionList):
Also accept command line options via the 'RI' environment variable.
Fri Jan 9 10:05:14 2004 Siena. <siena@faculty.chiba-u.jp>
* lib/mkmf.rb (libpathflag): use single quotes. [ruby-dev:22440]

View file

@ -150,6 +150,7 @@ module RI
end
puts
end
puts "Options may also be passed in the 'RI' environment varaible"
exit 0
end
end
@ -164,6 +165,11 @@ module RI
@formatter = RI::TextFormatter.for("plain")
@list_classes = false
old_argv = ARGV.dup
if ENV["RI"]
ARGV.replace(ENV["RI"].split.concat(ARGV))
end
begin
go = GetoptLong.new(*OptionList.options)