.homedir-setup.rb

branch
mhoward-lt
changeset 162
0538d5699cd7
parent 160
3b873456c2b3
child 184
ddb5e993a367
equal deleted inserted replaced
161:f44901f85f39 162:0538d5699cd7
9 puts "please install git" 9 puts "please install git"
10 exit 1 10 exit 1
11 end 11 end
12 12
13 def main 13 def main
14 if ARGV.length == 0
15 ARGV << '--help'
16 end
17
14 opts = GetoptLong.new( 18 opts = GetoptLong.new(
15 [ '--help', '-h', GetoptLong::NO_ARGUMENT ], 19 [ '--help', '-h', GetoptLong::NO_ARGUMENT ],
16 [ '--update', '-u', GetoptLong::NO_ARGUMENT ], 20 [ '--update', '-u', GetoptLong::NO_ARGUMENT ],
17 [ '--setup', '-s', GetoptLong::NO_ARGUMENT ], 21 [ '--setup', '-s', GetoptLong::NO_ARGUMENT ],
18 ); 22 );

mercurial