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:
parent
106460ad34
commit
9a2a1bdb34
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue