[Rubygems-developers] Patch: Minor help message amendment

Chad Fowler chad at chadfowler.com
Sat Mar 20 07:38:35 EST 2004


On Mar 20, 2004, at 12:10 AM, Gavin Sinclair wrote:

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


Thanks.


>
> 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
>
> _______________________________________________
> Rubygems-developers mailing list
> Rubygems-developers at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rubygems-developers



More information about the Rubygems-developers mailing list