Project

General

Profile

Actions

Patch #8008

closed

Fix 'rdm-mailhandler --help' not working

Added by Thomas Weiß about 14 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Email receiving
Target version:
-
Start date:
2011-03-29
Due date:
% Done:

0%

Estimated time:

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

fix-mailhandler-help.patch (324 Bytes) fix-mailhandler-help.patch Thomas Weiß, 2011-03-29 09:54
Actions #1

Updated by Etienne Massip about 14 years ago

Which version of Redmine are you using ?

Actions #2

Updated by Etienne Massip about 14 years ago

And of Rails / Ruby ?

Thanks

Actions #3

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

Actions #4

Updated by Etienne Massip about 14 years ago

  • Target version set to Candidate for next major release
Actions #5

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.

Actions

Also available in: Atom PDF