Module: Spire::Commands::Mixins::Help

Included in:
Console, Register
Defined in:
lib/spire/commands/mixins/help.rb

Class Method Summary collapse

Class Method Details

.included(target) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/spire/commands/mixins/help.rb', line 5

def self.included(target)
  target.module_eval do
    include Mixlib::CLI
    option :help,
      :short => "-h",
      :long => "--help",
      :description => "Show this message",
      :on => :tail,
      :boolean => true,
      :show_options => true,
      :exit => 0
  end
end