1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

play command now displays warning if receives no input

This commit is contained in:
John Mair 2011-09-07 18:59:34 +12:00
parent 106460ad34
commit 9a2a1bdb34

View file

@ -89,6 +89,7 @@ e.g amend-line puts 'hello again' # no line number modifies immediately preced
_pry_.input = StringIO.new(Array(text_array[range]).join)
else
next output.puts "Error: no input to play command" if !args.first
code = target.eval(args.first)
range = opts.l? ? one_index_range_or_number(opts[:l]) : (0..-1)