lib/tmbundle.rb in tmbundle-manager-0.1.0.pre7 vs lib/tmbundle.rb in tmbundle-manager-0.1.0.pre8
- old
+ new
@@ -121,10 +121,11 @@
end
if matches.size > 1
puts "please be more specific:"
matches.each_with_index {|m,i| puts " #{i+1}) #{m.name}"}
- raise NotFound
+ print 'Type the number> '
+ return(matches[$stdin.gets.to_i-1] || raise(NotFound))
end
if matches.empty?
puts "nothing found"
raise NotFound