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 2009/03/04 18:06:08 UTC

svn commit: r750076 - /buildr/trunk/doc/scripts/gitflow.rb

Author: vborja
Date: Wed Mar  4 17:06:07 2009
New Revision: 750076

URL: http://svn.apache.org/viewvc?rev=750076&view=rev
Log:
GitFlow/NoSuchCommand: display long help only when given -h

Modified:
    buildr/trunk/doc/scripts/gitflow.rb

Modified: buildr/trunk/doc/scripts/gitflow.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/doc/scripts/gitflow.rb?rev=750076&r1=750075&r2=750076&view=diff
==============================================================================
--- buildr/trunk/doc/scripts/gitflow.rb (original)
+++ buildr/trunk/doc/scripts/gitflow.rb Wed Mar  4 17:06:07 2009
@@ -258,13 +258,13 @@
   end
 
   class NoSuchCommand < GitFlow/nil
+    @documentation = HELP
+    
     def execute(opts, argv)
       page do
         puts "Command not found: #{argv.join(' ').inspect}"
         puts "Try `#{GitFlow.program} help` to obtain a list of commands."
-        puts HELP 
       end
-      exit 1
     end
   end