lib/mihari/commands/version.rb in mihari-5.2.2 vs lib/mihari/commands/version.rb in mihari-5.2.3
- old
+ new
@@ -1,16 +1,18 @@
# frozen_string_literal: true
module Mihari
module Commands
module Version
- def self.included(thor)
- thor.class_eval do
- map %w[--version -v] => :__print_version
+ class << self
+ def included(thor)
+ thor.class_eval do
+ map %w[--version -v] => :__print_version
- desc "--version, -v", "Print the version"
- def __print_version
- puts Mihari::VERSION
+ desc "--version, -v", "Print the version"
+ def __print_version
+ puts Mihari::VERSION
+ end
end
end
end
end
end