Module: Mihari::Commands::Version
- Included in:
- Mihari::CLI::Main
- Defined in:
- lib/mihari/commands/version.rb
Class Method Summary collapse
Class Method Details
.included(thor) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/mihari/commands/version.rb', line 6 def self.included(thor) thor.class_eval do map %w[--version -v] => :__print_version desc "--version, -v", "Print the version" def __print_version puts Mihari::VERSION end end end |