Typo and text formatting in rdm-mailhandler usage.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11524 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-03-03 08:10:40 +00:00
parent c4cf97dea5
commit e7bf31d162
1 changed files with 6 additions and 6 deletions

View File

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