Skip to content
Permalink
Browse files
[Truffle] jt: Make sure to only look in Commands' methods.
  • Loading branch information
eregon committed Jan 7, 2015
1 parent 378ca01 commit 4b5ac1b
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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)

0 comments on commit 4b5ac1b

Please sign in to comment.