[Rubygems-developers] --rdoc option does not have an effect
Eric Hodel
drbrain at segment7.net
Sun Jun 5 20:21:08 EDT 2005
On 05 Jun 2005, at 12:09, Lothar Scholz wrote:
> Hello,
>
> I can't see any effect of the --rdoc option. It seems to be use it
> with
>
> gem install xml-simple --version 1.0.7 --rdoc
> gem install BlueCloth --version 0.0.4 --rdoc
--rdoc is the default. Specifying it is redundant.
> the first has no "s.has_rdoc" defined in the specifiction the
> latter has
> "s.has_rdoc = nil". No matter what arguments, xml-simple is always
> installed without RDoc, BlueCloth always with RDoc. This does not make
> sense to me.
If a gem has no rdoc (xml-simple), rubygems can't suddenly make it
appear.
I would look at the bluecloth gem, but rubyforge is currently down.
> --rdoc seems not to work but --no-rdoc does works as
> expected.
This is just the way OptionParser works:
$ cat x.rb
#!/usr/local/bin/ruby
require 'optparse'
OptionParser.new do |opts|
opts.on("-r", "--[no-]rdoc", "Install rdoc") { |val| puts "val is:
#{val}" }
end.parse!
$ ./x.rb --rdoc
val is: true
$ ./x.rb --no-rdoc
val is: false
--
Eric Hodel - drbrain at segment7.net - http://segment7.net
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04
More information about the Rubygems-developers
mailing list