class Byebug::SaveCommand

def execute

def execute
  if !@match[1]
    file = open_save
  else
    file = open(@match[1], 'w')
  end
  save_breakpoints(file)
  save_catchpoints(file)
  save_displays(file)
  save_settings(file)
  puts "Saved to '#{file.path}'"
  @state.interface.restart_file = file.path if @state && @state.interface
  file.close
end