default to --help

Sat, 03 Jan 2015 23:44:39 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 03 Jan 2015 23:44:39 -0500
changeset 160
3b873456c2b3
parent 159
da073ee04e14
child 162
0538d5699cd7
child 163
fe352f27be10

default to --help

.homedir-setup.rb file | annotate | diff | comparison | revisions
--- a/.homedir-setup.rb
+++ b/.homedir-setup.rb
@@ -11,6 +11,10 @@ if `which git` == ''
 end
 
 def main
+  if ARGV.length == 0
+    ARGV << '--help'
+  end
+
   opts = GetoptLong.new(
     [ '--help', '-h', GetoptLong::NO_ARGUMENT ],
     [ '--update', '-u', GetoptLong::NO_ARGUMENT ],

mercurial