[Rubygems-developers] Patch: Minor help message amendment

Gavin Sinclair gsinclair at soyabean.com.au
Sat Mar 20 16:10:28 EST 2004


This patch removes an incorrect quotation mark, adds a pointer to the
website for more information, and understands -h to mean 'help'.

Cheers,
Gavin



Index: bin/gem
===================================================================
RCS file: /var/cvs/rubygems/rubygems/bin/gem,v
retrieving revision 1.35
diff -u -r1.35 gem
--- bin/gem     19 Mar 2004 15:45:53 -0000      1.35
+++ bin/gem     20 Mar 2004 05:25:19 -0000
@@ -7,8 +7,9 @@
   opts.banner = <<BANNER

 'gem' is the user interface to RubyGems, the Ruby package manager.
+See http://rubygems.rubyforge.org for user and developer documentation.

-    Usage: gem <action> [modifier ...]"
+    Usage: gem <action> [modifier ...]
 BANNER
   opts.separator("")
   opts.separator("Actions:")
@@ -40,7 +41,7 @@
   opts.on('--version GEMVERSION', "Version of gem to perform operation on") {|options[:gem_version]|}
   opts.separator("")
   opts.separator("Miscellaneous:")
-  opts.on("--help", "show this message") {puts opts; exit}
+  opts.on('-h', '--help', "show this message") {puts opts; exit}
   opts.parse!
 end



More information about the Rubygems-developers mailing list