@@ -92,33 +92,37 class RedmineMailHandler | |||||
92 | opts.on( "--category CATEGORY", "name of the target category") {|v| self.issue_attributes['category'] = v} |
|
92 | opts.on( "--category CATEGORY", "name of the target category") {|v| self.issue_attributes['category'] = v} | |
93 | opts.on( "--priority PRIORITY", "name of the target priority") {|v| self.issue_attributes['priority'] = v} |
|
93 | opts.on( "--priority PRIORITY", "name of the target priority") {|v| self.issue_attributes['priority'] = v} | |
94 | opts.on( "--private", "create new issues as private") {|v| self.issue_attributes['is_private'] = '1'} |
|
94 | opts.on( "--private", "create new issues as private") {|v| self.issue_attributes['is_private'] = '1'} | |
95 |
opts.on("-o", "--allow-override ATTRS", "allow email content to |
|
95 | opts.on("-o", "--allow-override ATTRS", "allow email content to set attributes values", | |
96 |
" |
|
96 | "ATTRS is a comma separated list of attributes", | |
97 |
" |
|
97 | "or 'all' to allow all attributes to be", | |
98 | opts.separator("") |
|
98 | "overridable (see below for details)") {|v| self.allow_override = v} | |
99 | opts.separator("Overrides:") |
|
99 | ||
100 | opts.separator(" ATTRS is a comma separated list of attributes among:") |
|
100 | opts.separator <<-END_DESC | |
101 | opts.separator(" * project, tracker, status, priority, category, assigned_to, fixed_version,") |
|
101 | ||
102 | opts.separator(" start_date, due_date, estimated_hours, done_ratio") |
|
102 | Overrides: | |
103 | opts.separator(" * custom fields names with underscores instead of spaces (case insensitive)") |
|
103 | ATTRS is a comma separated list of attributes among: | |
104 | opts.separator("") |
|
104 | * project, tracker, status, priority, category, assigned_to, fixed_version, | |
105 | opts.separator(" Example: --allow_override=project,priority,my_custom_field") |
|
105 | start_date, due_date, estimated_hours, done_ratio | |
106 | opts.separator("") |
|
106 | * custom fields names with underscores instead of spaces (case insensitive) | |
107 | opts.separator(" If the --project option is not set, project is overridable by default for") |
|
107 | ||
108 | opts.separator(" emails that create new issues.") |
|
108 | Example: --allow_override=project,priority,my_custom_field | |
109 | opts.separator("") |
|
109 | ||
110 | opts.separator(" You can use --allow_override=all to allow all attributes to be overridable.") |
|
110 | If the --project option is not set, project is overridable by default for | |
111 | opts.separator("") |
|
111 | emails that create new issues. | |
112 | opts.separator("Examples:") |
|
112 | ||
113 | opts.separator(" No project specified, emails MUST contain the 'Project' keyword:") |
|
113 | You can use --allow_override=all to allow all attributes to be overridable. | |
114 | opts.separator(" rdm-mailhandler.rb --url http://redmine.domain.foo --key secret") |
|
114 | ||
115 | opts.separator("") |
|
115 | Examples: | |
116 | opts.separator(" Fixed project and default tracker specified, but emails can override") |
|
116 | No project specified, emails MUST contain the 'Project' keyword: | |
117 | opts.separator(" both tracker and priority attributes using keywords:") |
|
117 | rdm-mailhandler.rb --url http://redmine.domain.foo --key secret | |
118 | opts.separator(" rdm-mailhandler.rb --url https://domain.foo/redmine --key secret \\") |
|
118 | ||
119 | opts.separator(" --project foo \\") |
|
119 | Fixed project and default tracker specified, but emails can override | |
120 | opts.separator(" --tracker bug \\") |
|
120 | both tracker and priority attributes using keywords: | |
121 | opts.separator(" --allow-override tracker,priority") |
|
121 | rdm-mailhandler.rb --url https://domain.foo/redmine --key secret \\ | |
|
122 | --project foo \\ | |||
|
123 | --tracker bug \\ | |||
|
124 | --allow-override tracker,priority | |||
|
125 | END_DESC | |||
122 |
|
126 | |||
123 | opts.summary_width = 27 |
|
127 | opts.summary_width = 27 | |
124 | end |
|
128 | end |
General Comments 0
You need to be logged in to leave comments.
Login now