class Byebug::RestartCommand
def execute
def execute if Byebug.mode == :standalone cmd = "#{Gem.bin_path('byebug', 'byebug')} #{$PROGRAM_NAME}" else cmd = $PROGRAM_NAME end if @match[:args] cmd += " #{@match[:args]}" else require 'shellwords' cmd += " #{$ARGV.compact.shelljoin}" end puts pr('restart.success', cmd: cmd) exec(cmd) end