[Rubygems-developers] --version failing

Doug Kearns dougkearns at gmail.com
Wed Jul 20 11:02:05 EDT 2005


On Wed, Jul 20, 2005 at 10:02:14PM +1000, Doug Kearns wrote:
> G'day all,
> 
> I'm a bit short on time tonight so I haven't investigated properly but
> could someone confirm this for me?

<snip>

Not having used optparse I'll take a punt... ;-)

Regards,
Doug

Index: gem_commands.rb
===================================================================
RCS file: /var/cvs/rubygems/rubygems/lib/rubygems/gem_commands.rb,v
retrieving revision 1.65
diff -u -r1.65 gem_commands.rb
--- gem_commands.rb	18 Jul 2005 10:44:15 -0000	1.65
+++ gem_commands.rb	20 Jul 2005 15:01:03 -0000
@@ -460,7 +460,7 @@
       add_option('-t', '--test', "Run unit tests for gem") do |value, options|
         options[:test] = true
       end
-      add_option('-V', '--version', "Specify version for which to run unit tests") do |value, options|
+      add_option('-V', '--version VERSION', "Specify version for which to run unit tests") do |value, options|
         options[:version] = value
       end
     end
@@ -1184,7 +1184,7 @@
 	o[:list] = true
       end
       
-      add_option("-V","--version","Specify version for gem to view") do |v,o|
+      add_option("-V","--version VERSION","Specify version for gem to view") do |v,o|
 	o[:version] = v
       end
       


More information about the Rubygems-developers mailing list