Revision 2076
Added by Jean-Philippe Lang over 16 years ago
trunk/extra/mail_handler/rdm-mailhandler.rb | ||
---|---|---|
21 | 21 |
# |
22 | 22 |
# Issue attributes control options: |
23 | 23 |
# -p, --project=PROJECT identifier of the target project |
24 |
# -s, --status=STATUS name of the target status |
|
24 | 25 |
# -t, --tracker=TRACKER name of the target tracker |
25 | 26 |
# --category=CATEGORY name of the target category |
26 | 27 |
# --priority=PRIORITY name of the target priority |
... | ... | |
75 | 76 |
[ '--url', '-u', GetoptLong::REQUIRED_ARGUMENT ], |
76 | 77 |
[ '--key', '-k', GetoptLong::REQUIRED_ARGUMENT], |
77 | 78 |
[ '--project', '-p', GetoptLong::REQUIRED_ARGUMENT ], |
79 |
[ '--status', '-s', GetoptLong::REQUIRED_ARGUMENT ], |
|
78 | 80 |
[ '--tracker', '-t', GetoptLong::REQUIRED_ARGUMENT], |
79 | 81 |
[ '--category', GetoptLong::REQUIRED_ARGUMENT], |
80 | 82 |
[ '--priority', GetoptLong::REQUIRED_ARGUMENT], |
... | ... | |
93 | 95 |
self.verbose = true |
94 | 96 |
when '--version' |
95 | 97 |
puts VERSION; exit |
96 |
when '--project', '--tracker', '--category', '--priority' |
|
98 |
when '--project', '--status', '--tracker', '--category', '--priority'
|
|
97 | 99 |
self.issue_attributes[opt.gsub(%r{^\-\-}, '')] = arg.dup |
98 | 100 |
when '--allow-override' |
99 | 101 |
self.allow_override = arg.dup |
Also available in: Unified diff
Adds --status option to rdm-mailhandler.