ri now accepts options via RI environment variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
235ba61b59
commit
60c8435e1f
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Sat Jan 10 23:01:41 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sat Jan 10 23:01:41 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (LIBPATHFLAG, RPATHFLAG): enclose paths with single
|
* configure.in (LIBPATHFLAG, RPATHFLAG): enclose paths with single
|
||||||
|
@ -150,6 +150,7 @@ module RI
|
|||||||
end
|
end
|
||||||
puts
|
puts
|
||||||
end
|
end
|
||||||
|
puts "Options may also be passed in the 'RI' environment varaible"
|
||||||
exit 0
|
exit 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -164,6 +165,11 @@ module RI
|
|||||||
@formatter = RI::TextFormatter.for("plain")
|
@formatter = RI::TextFormatter.for("plain")
|
||||||
@list_classes = false
|
@list_classes = false
|
||||||
|
|
||||||
|
old_argv = ARGV.dup
|
||||||
|
if ENV["RI"]
|
||||||
|
ARGV.replace(ENV["RI"].split.concat(ARGV))
|
||||||
|
end
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
|
||||||
go = GetoptLong.new(*OptionList.options)
|
go = GetoptLong.new(*OptionList.options)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user