You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the multiple_switches feature, Slop doesn't work as expected. For example, with the following code where args is ["-mLv", "-C", "Ripper"] :
opts=Slop.parse!args,:multiple_switches=>truedoon:v,:verbose,"Show value of variables and constants and locations of methods"on:L,:less,"Only show methods set by the receiver"on:a,:more,"Show all of the methods, including those defined in Object"on:f,:filter,"Regular expression to filter methods and variables",:optional=>false,:default=>""on:C,:context,"Changes self",:optional=>falsedo |arg|
pargctxt.target=Pry.binding_for(target.eval(context))endon:l,:locals,"Show local variables"on:g,:globals,"Show global variables"on:i,'instance-variables',"Show instance variables"on:k,'class-variables',"Show class variables"on:c,:constants,"Show constants"on:m,:methods,"Show methods"on:M,'instance-methods',"Show instance methods"on:h,:help,'Print this help message',:tail=>trueend
args still contains the flags passed to Slop and the block passed to the context flag doesn't get called.
The text was updated successfully, but these errors were encountered:
Hi,
Using the multiple_switches feature, Slop doesn't work as expected. For example, with the following code where args is ["-mLv", "-C", "Ripper"] :
args still contains the flags passed to Slop and the block passed to the context flag doesn't get called.
The text was updated successfully, but these errors were encountered: