lib/byebug/commands/set.rb in byebug-1.5.0 vs lib/byebug/commands/set.rb in byebug-1.6.0
- old
+ new
@@ -92,18 +92,13 @@
when /^autoeval$/
Command.settings[:autoeval] = set_on
when /^basename$/
Command.settings[:basename] = set_on
when /^callstyle$/
- if args[0]
- arg = args[0].downcase.to_sym
- case arg
- when :short, :last, :tracked
- Command.settings[:callstyle] = arg
- else
- print "Invalid call style #{arg}. Should be one of: " \
- "\"short\", \"last\" or \"tracked\".\n"
- end
+ if args[0] and (args[0] == 'short' or arg[0] == 'long')
+ Command.settings[:callstyle] = arg[0].to_sym
+ else
+ print "Invalid callstyle. Should be one of: \"short\" or \"long\"\n"
end
when /^trace$/
Command.settings[:stack_trace_on_error] = set_on
when /^fullpath$/
Command.settings[:frame_fullpath] = set_on