@@ -49,7 +49,7 class RedmineMailHandler | |||||
49 | optparse = OptionParser.new do |opts| |
|
49 | optparse = OptionParser.new do |opts| | |
50 | opts.banner = "Usage: rdm-mailhandler.rb [options] --url=<Redmine URL> --key=<API key>" |
|
50 | opts.banner = "Usage: rdm-mailhandler.rb [options] --url=<Redmine URL> --key=<API key>" | |
51 | opts.separator("") |
|
51 | opts.separator("") | |
52 | opts.separator("Reads an email from standard input and forward it to a Redmine server through a HTTP request.") |
|
52 | opts.separator("Reads an email from standard input and forwards it to a Redmine server through a HTTP request.") | |
53 | opts.separator("") |
|
53 | opts.separator("") | |
54 | opts.separator("Required arguments:") |
|
54 | opts.separator("Required arguments:") | |
55 | opts.on("-u", "--url URL", "URL of the Redmine server") {|v| self.url = v} |
|
55 | opts.on("-u", "--url URL", "URL of the Redmine server") {|v| self.url = v} | |
@@ -58,10 +58,10 class RedmineMailHandler | |||||
58 | opts.separator("General options:") |
|
58 | opts.separator("General options:") | |
59 | opts.on("--no-permission-check", "disable permission checking when receiving", |
|
59 | opts.on("--no-permission-check", "disable permission checking when receiving", | |
60 | "the email") {self.no_permission_check = '1'} |
|
60 | "the email") {self.no_permission_check = '1'} | |
61 |
opts.on("--key-file FILE", "path to a file that contains |
|
61 | opts.on("--key-file FILE", "full path to a file that contains your Redmine", | |
62 | "API key (use this option instead of --key", |
|
62 | "API key (use this option instead of --key if", | |
63 |
" |
|
63 | "you don't want the key to appear in the command", | |
64 |
" |
|
64 | "line)") {|v| read_key_from_file(v)} | |
65 | opts.on("--no-check-certificate", "do not check server certificate") {self.no_check_certificate = true} |
|
65 | opts.on("--no-check-certificate", "do not check server certificate") {self.no_check_certificate = true} | |
66 | opts.on("-h", "--help", "show this help") {puts opts; exit 1} |
|
66 | opts.on("-h", "--help", "show this help") {puts opts; exit 1} | |
67 | opts.on("-v", "--verbose", "show extra information") {self.verbose = true} |
|
67 | opts.on("-v", "--verbose", "show extra information") {self.verbose = true} | |
@@ -87,7 +87,7 class RedmineMailHandler | |||||
87 | "ATTRS is a comma separated list of attributes") {|v| self.allow_override = v} |
|
87 | "ATTRS is a comma separated list of attributes") {|v| self.allow_override = v} | |
88 | opts.separator("") |
|
88 | opts.separator("") | |
89 | opts.separator("Examples:") |
|
89 | opts.separator("Examples:") | |
90 |
opts.separator("No project specified |
|
90 | opts.separator("No project specified, emails MUST contain the 'Project' keyword:") | |
91 | opts.separator(" rdm-mailhandler.rb --url http://redmine.domain.foo --key secret") |
|
91 | opts.separator(" rdm-mailhandler.rb --url http://redmine.domain.foo --key secret") | |
92 | opts.separator("") |
|
92 | opts.separator("") | |
93 | opts.separator("Fixed project and default tracker specified, but emails can override") |
|
93 | opts.separator("Fixed project and default tracker specified, but emails can override") |
General Comments 0
You need to be logged in to leave comments.
Login now