##// END OF EJS Templates
Adds --status option to rdm-mailhandler....
Jean-Philippe Lang -
r2074:94899e0339f1
parent child
Show More
@@ -21,6 +21,7
21 #
21 #
22 # Issue attributes control options:
22 # Issue attributes control options:
23 # -p, --project=PROJECT identifier of the target project
23 # -p, --project=PROJECT identifier of the target project
24 # -s, --status=STATUS name of the target status
24 # -t, --tracker=TRACKER name of the target tracker
25 # -t, --tracker=TRACKER name of the target tracker
25 # --category=CATEGORY name of the target category
26 # --category=CATEGORY name of the target category
26 # --priority=PRIORITY name of the target priority
27 # --priority=PRIORITY name of the target priority
@@ -75,6 +76,7 class RedmineMailHandler
75 [ '--url', '-u', GetoptLong::REQUIRED_ARGUMENT ],
76 [ '--url', '-u', GetoptLong::REQUIRED_ARGUMENT ],
76 [ '--key', '-k', GetoptLong::REQUIRED_ARGUMENT],
77 [ '--key', '-k', GetoptLong::REQUIRED_ARGUMENT],
77 [ '--project', '-p', GetoptLong::REQUIRED_ARGUMENT ],
78 [ '--project', '-p', GetoptLong::REQUIRED_ARGUMENT ],
79 [ '--status', '-s', GetoptLong::REQUIRED_ARGUMENT ],
78 [ '--tracker', '-t', GetoptLong::REQUIRED_ARGUMENT],
80 [ '--tracker', '-t', GetoptLong::REQUIRED_ARGUMENT],
79 [ '--category', GetoptLong::REQUIRED_ARGUMENT],
81 [ '--category', GetoptLong::REQUIRED_ARGUMENT],
80 [ '--priority', GetoptLong::REQUIRED_ARGUMENT],
82 [ '--priority', GetoptLong::REQUIRED_ARGUMENT],
@@ -93,7 +95,7 class RedmineMailHandler
93 self.verbose = true
95 self.verbose = true
94 when '--version'
96 when '--version'
95 puts VERSION; exit
97 puts VERSION; exit
96 when '--project', '--tracker', '--category', '--priority'
98 when '--project', '--status', '--tracker', '--category', '--priority'
97 self.issue_attributes[opt.gsub(%r{^\-\-}, '')] = arg.dup
99 self.issue_attributes[opt.gsub(%r{^\-\-}, '')] = arg.dup
98 when '--allow-override'
100 when '--allow-override'
99 self.allow_override = arg.dup
101 self.allow_override = arg.dup
General Comments 0
You need to be logged in to leave comments. Login now