Patch #8008
closedFix 'rdm-mailhandler --help' not working
0%
Description
Invoking "rdm-mailhandler --help" gives the following error:
$ ./rdm-mailhandler.rb --help
./rdm-mailhandler.rb:103:in `initialize': undefined local variable or method `usage' for #<RedmineMailHandler:0x7f7335c540b8 @issue_attributes={}> (NameError)
from /usr/lib/ruby/1.8/getoptlong.rb:613:in `each'
from /usr/lib/ruby/1.8/getoptlong.rb:610:in `loop'
from /usr/lib/ruby/1.8/getoptlong.rb:610:in `each'
from ./rdm-mailhandler.rb:96:in `initialize'
from ./rdm-mailhandler.rb:167:in `new'
from ./rdm-mailhandler.rb:167
The attached patch fixes the issue by correcting the call to RDoc.usage (line 103).
Files
Updated by Etienne Massip about 14 years ago
Which version of Redmine are you using ?
Updated by Jean-Philippe Lang about 14 years ago
Btw, we should use optparse instead for ruby1.9 compatibility: http://redmine.ruby-lang.org/issues/show/2713
Updated by Etienne Massip about 14 years ago
- Target version set to Candidate for next major release
Updated by Jean-Philippe Lang almost 13 years ago
- Status changed from New to Closed
- Target version deleted (
Candidate for next major release)
Superseded by #10837.