[macruby-changes] [739] MacRuby/trunk/bin/hotcocoa

source_changes at macosforge.org source_changes at macosforge.org
Thu Nov 13 09:55:48 PST 2008


Revision: 739
          http://trac.macosforge.org/projects/ruby/changeset/739
Author:   ben at tanjero.com
Date:     2008-11-13 09:55:48 -0800 (Thu, 13 Nov 2008)
Log Message:
-----------
Added --help option to hotcocoa tool.

Modified Paths:
--------------
    MacRuby/trunk/bin/hotcocoa

Modified: MacRuby/trunk/bin/hotcocoa
===================================================================
--- MacRuby/trunk/bin/hotcocoa	2008-11-12 15:17:15 UTC (rev 738)
+++ MacRuby/trunk/bin/hotcocoa	2008-11-13 17:55:48 UTC (rev 739)
@@ -2,7 +2,7 @@
 
 project_name = ARGV.shift
 
-unless project_name
+if project_name.empty? or project_name == "--help" or project_name =="-h"
   puts "Usage: hotcocoa <project name>"
   exit
 end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20081113/8df09e2e/attachment.html>


More information about the macruby-changes mailing list