Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -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.