diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-11-30 15:51:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-11-30 15:51:44 +0000 |
commit | 94899e0339f1141668a29f5c3bc9b5574d2539a5 (patch) | |
tree | 5cb2846033b9ea0f6311e198dc447d0fe215bae1 /extra | |
parent | abacc2754e7a18338e1ffb0ea4099fa22b9e5382 (diff) | |
download | redmine-94899e0339f1141668a29f5c3bc9b5574d2539a5.tar.gz redmine-94899e0339f1141668a29f5c3bc9b5574d2539a5.zip |
Adds --status option to rdm-mailhandler.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2076 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra')
-rw-r--r-- | extra/mail_handler/rdm-mailhandler.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extra/mail_handler/rdm-mailhandler.rb b/extra/mail_handler/rdm-mailhandler.rb index cbf13eb04..93484ca34 100644 --- a/extra/mail_handler/rdm-mailhandler.rb +++ b/extra/mail_handler/rdm-mailhandler.rb @@ -21,6 +21,7 @@ # # Issue attributes control options: # -p, --project=PROJECT identifier of the target project +# -s, --status=STATUS name of the target status # -t, --tracker=TRACKER name of the target tracker # --category=CATEGORY name of the target category # --priority=PRIORITY name of the target priority @@ -75,6 +76,7 @@ class RedmineMailHandler [ '--url', '-u', GetoptLong::REQUIRED_ARGUMENT ], [ '--key', '-k', GetoptLong::REQUIRED_ARGUMENT], [ '--project', '-p', GetoptLong::REQUIRED_ARGUMENT ], + [ '--status', '-s', GetoptLong::REQUIRED_ARGUMENT ], [ '--tracker', '-t', GetoptLong::REQUIRED_ARGUMENT], [ '--category', GetoptLong::REQUIRED_ARGUMENT], [ '--priority', GetoptLong::REQUIRED_ARGUMENT], @@ -93,7 +95,7 @@ class RedmineMailHandler self.verbose = true when '--version' puts VERSION; exit - when '--project', '--tracker', '--category', '--priority' + when '--project', '--status', '--tracker', '--category', '--priority' self.issue_attributes[opt.gsub(%r{^\-\-}, '')] = arg.dup when '--allow-override' self.allow_override = arg.dup |