Skip to content

Commit

Permalink
[Truffle] jt: Make sure to only look in Commands' methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 7, 2015
1 parent 378ca01 commit 4b5ac1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tool/jt.rb
Expand Up @@ -109,9 +109,9 @@ def run(args)

return if args.empty?

commands = Commands.public_instance_methods.map(&:to_s)
commands = Commands.public_instance_methods(false).map(&:to_s)

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

begin
send(*args)
Expand Down

0 comments on commit 4b5ac1b

Please sign in to comment.