mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
added ni_arg_string and ni_val for non interpolated versions of val and arg_string command options
This commit is contained in:
parent
933ce7b355
commit
c7de349c02
1 changed files with 4 additions and 0 deletions
|
@ -118,6 +118,7 @@ class Pry
|
|||
# no command was matched, so return to caller
|
||||
return if !pry_command?(val)
|
||||
|
||||
ni_val = val.dup
|
||||
val.replace interpolate_string(val, target)
|
||||
command, args_string = command_matched(val)
|
||||
|
||||
|
@ -125,6 +126,9 @@ class Pry
|
|||
|
||||
options = {
|
||||
:val => val,
|
||||
:arg_string => Pry::Helpers::BaseHelpers.remove_first_word(val),
|
||||
:ni_val => ni_val,
|
||||
:ni_arg_string => Pry::Helpers::BaseHelpers.remove_first_word(ni_val),
|
||||
:eval_string => eval_string,
|
||||
:nesting => nesting,
|
||||
:commands => commands.commands
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue