You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by vb...@apache.org on 2008/04/16 08:31:22 UTC
svn commit: r648550 - /incubator/buildr/trunk/doc/scripts/buildr-git.rb
Author: vborja
Date: Tue Apr 15 23:31:21 2008
New Revision: 648550
URL: http://svn.apache.org/viewvc?rev=648550&view=rev
Log:
Parsing options read from interactive input. Run:
ruby -ropen-uri -e
'eval(open("http://balloon.hobix.com/buildr-git").read)'
Modified:
incubator/buildr/trunk/doc/scripts/buildr-git.rb
Modified: incubator/buildr/trunk/doc/scripts/buildr-git.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/doc/scripts/buildr-git.rb?rev=648550&r1=648549&r2=648550&view=diff
==============================================================================
--- incubator/buildr/trunk/doc/scripts/buildr-git.rb (original)
+++ incubator/buildr/trunk/doc/scripts/buildr-git.rb Tue Apr 15 23:31:21 2008
@@ -204,7 +204,7 @@
options.local = value
end
opt.on('-b', "--branch GIT_SVN_BRANCH",
- "Set the name for the remote branch tracking apache/trunk changes") do |value|
+ "Set the name for svn branch instead of apache/trunk") do |value|
options.svn_branch = value
end
opt.on('-e', "--email EMAIL",
@@ -238,14 +238,16 @@
This script will configure a buildr-git copy on so you can commit to svn.
Local git copy: #{local}
-Press <RETURN> to continue, <-h> to see options, <-n> to see the
-comments on configured aliases and git workflow.
-Ctrl+D or write anything else to abort
+Enter <-h> to see options, <-n> to see notes about configured aliases
+and recommended workflow, or any other option.
+
+Ctrl+D or an invalid option to abort
HEADER
print '> '
input = gets
-opt.parse! [input.chomp] if input
-unless input && input.chomp.empty?
+input = input.split if input
+opt.parse! input
+unless input && input.empty?
puts "Aborting."
exit(0)
end