.homedir-setup.rb

changeset 160
3b873456c2b3
parent 152
69896d410e89
child 184
ddb5e993a367
equal deleted inserted replaced
159:da073ee04e14 160:3b873456c2b3
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