rdoc
rdoc copied to clipboard
Options -r and -o should be combinable
This module should explain it:
# When using the 'r' and 'o' option together, you should be able to combine the
# flags into one command to generate ri documentation for a given output
# destination. Such as:
#
# rdoc -ro mydocs lib/mylib.rb
#
module MyLib
def yaknow
puts "oh, totally"
end
end
When you try: rdoc -ro mydocs lib/mylib.rb what you actually see is:
invalid options: -ro
(invalid options are ignored)
I'm unsure if this is an RDoc bug or not. I don't see anything in my OptionParser object that would cause this to happen but I can reproduce it.
I can't create a reproduction outside of RDoc::Options though, so I'm moving this to the future.
To add, although the error is displayed, the generation of the output directory and the ri documentation for the snippet works fine.
Nope. Wrong conclusion. Ignore the above comment. Using -ro won't generate the ri documentation.