Class: Klenod::Build::CLI::Application

Inherits:
Samovar::Command
  • Object
show all
Defined in:
lib/klenod/build/cli/application.rb

Instance Method Summary collapse

Instance Method Details

#callObject



96
97
98
99
100
101
102
103
104
# File 'lib/klenod/build/cli/application.rb', line 96

def call
  if @options[:version]
    output.puts Klenod::Build::VERSION
  elsif @options[:help] || !@command
    print_usage
  else
    @command.call
  end
end