Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -154,7 +154,7 @@ def help
puts ' --igv make sure IGV is running and dump Graal graphs after partial escape (implies --graal)'
puts ' --jdebug run a JDWP debug server on 8000'
puts 'jt e 14 + 2 evaluate an expression'
puts 'jt print 14 + 2 evaluate and print an expression'
puts 'jt puts 14 + 2 evaluate and print an expression'
puts 'jt test run all mri tests and specs'
puts 'jt test mri run mri tests'
puts 'jt test specs run all specs'
@@ -253,7 +253,6 @@ def e(*args)
def command_puts(*args)
e 'puts begin', *args, 'end'
end
alias_method :command_print, :command_puts

def command_p(*args)
e 'p begin', *args, 'end'
@@ -432,7 +431,7 @@ def main(args)
commands = Commands.public_instance_methods(false).map(&:to_s)

command, *rest = args
command = "command_#{command}" if %w[p puts print].include? command
command = "command_#{command}" if %w[p puts].include? command

abort "no command matched #{command.inspect}" unless commands.include?(command)

0 comments on commit 0430387

Please sign in to comment.