35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/autorake/application.rb', line 35
def run
process_options do
while (arg = $*.shift) do
case arg
when /\A--/ then
a, val = $'.split "=", 2
do_option a do val || $*.shift end
when /\A-/ then
arg = $'
until (a = arg.slice! 0, 1).empty? do
do_option a do
unless arg.empty? then
arg.slice! 0, arg.length
else
$*.shift
end
end
end
else
n, v = arg.split "="
environ n, v||"1"
end
end
end
execute
rescue Done
rescue
raise if @verbose
$stderr.puts "#$! (#{$!.class})"
exit 1
end
|