summaryrefslogtreecommitdiffstats
path: root/extra/svn
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-05-06 21:18:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-05-06 21:18:31 +0000
commit03e9c517762781a72e5d32d1c94915973e570e1b (patch)
tree0409aa8ee549d6d614c1af7f0ba2f7c091f55bb3 /extra/svn
parent3710bbfda1800c124582ec5a13cef76a79d45d12 (diff)
downloadredmine-03e9c517762781a72e5d32d1c94915973e570e1b.tar.gz
redmine-03e9c517762781a72e5d32d1c94915973e570e1b.zip
Formatting.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9649 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra/svn')
-rwxr-xr-xextra/svn/reposman.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/extra/svn/reposman.rb b/extra/svn/reposman.rb
index 9ae746afe..8c31b6acb 100755
--- a/extra/svn/reposman.rb
+++ b/extra/svn/reposman.rb
@@ -68,12 +68,14 @@ end
optparse = OptionParser.new do |opts|
opts.banner = "Usage: reposman.rb [OPTIONS...] -s [DIR] -r [HOST] -k [KEY]"
opts.separator("")
-
opts.separator("Required arguments:")
opts.on("-s", "--svn-dir", "use DIR as base directory for svn repositories") {|v| $repos_base = v}
- opts.on("-r", "--redmine-host", "assume Redmine is hosted on HOST. Examples:", " -r redmine.example.net", " -r http://redmine.example.net", " -r https://redmine.example.net") {|v| $redmine_host = v}
- opts.on("-k", "--key KEY", "use KEY as the Redmine API key", "(you can use --key-file option as an alternative)") {|v| $api_key = v}
-
+ opts.on("-r", "--redmine-host", "assume Redmine is hosted on HOST. Examples:",
+ " -r redmine.example.net",
+ " -r http://redmine.example.net",
+ " -r https://redmine.example.net") {|v| $redmine_host = v}
+ opts.on("-k", "--key KEY", "use KEY as the Redmine API key",
+ "(you can use --key-file option as an alternative)") {|v| $api_key = v}
opts.separator("")
opts.separator("Options:")
opts.on("-o", "--owner OWNER", "owner of the repository. using the rails login",
@@ -110,13 +112,9 @@ optparse = OptionParser.new do |opts|
opts.on("-f", "--force", "force repository creation even if the project", "repository is already declared in Redmine") {$force = true}
opts.on("-v", "--verbose", "verbose") {$verbose += 1}
opts.on("-V", "--version", "show version and exit") {puts Version; exit}
- opts.on("-h", "--help", "show help and exit") do
- puts opts
- exit 1
- end
- opts.on("-q", "--quiet", "no log") {$quiet = true}
+ opts.on("-h", "--help", "show help and exit") {puts opts; exit 1}
+ opts.on("-q", "--quiet", "no log") {$quiet = true}
opts.separator("")
-
opts.separator("Examples:")
opts.separator(" reposman.rb --svn-dir=/var/svn --redmine-host=redmine.host")
opts.separator(" reposman.rb -s /var/git -r redmine.host -u http://git.host --scm git")