Skip to content

Commit 4b5ac1b

Browse files
committed
[Truffle] jt: Make sure to only look in Commands' methods.
1 parent 378ca01 commit 4b5ac1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tool/jt.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ def run(args)
109109

110110
return if args.empty?
111111

112-
commands = Commands.public_instance_methods.map(&:to_s)
112+
commands = Commands.public_instance_methods(false).map(&:to_s)
113113

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

116116
begin
117117
send(*args)

0 commit comments

Comments
 (0)