diff options
| author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-13 17:52:52 +0000 |
|---|---|---|
| committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-13 17:52:52 +0000 |
| commit | 799405199d56f59df4d1aa47a5a76858a4a9797d (patch) | |
| tree | ff7c99c2e7265af5b6e5b12db92531a52c25c743 /lib/rdoc | |
| parent | 1b04c9f9cacbf70347d03b6c47ba8714b9055f25 (diff) | |
| download | ruby-799405199d56f59df4d1aa47a5a76858a4a9797d.tar.gz ruby-799405199d56f59df4d1aa47a5a76858a4a9797d.tar.xz ruby-799405199d56f59df4d1aa47a5a76858a4a9797d.zip | |
Add "usage" interface
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
| -rw-r--r-- | lib/rdoc/markup/simple_markup/to_flow.rb | 2 | ||||
| -rw-r--r-- | lib/rdoc/ri/ri_options.rb | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/lib/rdoc/markup/simple_markup/to_flow.rb b/lib/rdoc/markup/simple_markup/to_flow.rb index d5f6732d5..ce366d2df 100644 --- a/lib/rdoc/markup/simple_markup/to_flow.rb +++ b/lib/rdoc/markup/simple_markup/to_flow.rb @@ -1,6 +1,6 @@ require 'rdoc/markup/simple_markup/fragments' require 'rdoc/markup/simple_markup/inline' - +require 'CGI' module SM diff --git a/lib/rdoc/ri/ri_options.rb b/lib/rdoc/ri/ri_options.rb index 4c8531aa4..b53a68812 100644 --- a/lib/rdoc/ri/ri_options.rb +++ b/lib/rdoc/ri/ri_options.rb @@ -176,16 +176,19 @@ module RI end - # Parse command line options. - - def parse - + def initialize @use_stdout = !STDOUT.tty? @width = 72 @formatter = RI::TextFormatter.for("plain") @list_classes = false @list_names = false + end + + # Parse command line options. + + def parse + old_argv = ARGV.dup if ENV["RI"] ARGV.replace(ENV["RI"].split.concat(ARGV)) |
