Class: Icarus::Mod::CLI::Command
- Defined in:
- lib/icarus/mod/cli/command.rb
Overview
The main CLI Command class for Icarus Mod Tools
Instance Method Summary collapse
-
#initialize(*args) ⇒ Command
constructor
A new instance of Command.
Methods inherited from Base
Constructor Details
#initialize(*args) ⇒ Command
Returns a new instance of Command.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/icarus/mod/cli/command.rb', line 15 def initialize(*args) super if [:version] puts "IcarusModTool (imt) v#{Icarus::Mod::VERSION}" exit 0 end unless File.exist?([:config]) warn "Could not find or read Config from '#{[:config]}' - please create it or specify a different path with -C" exit 1 end Icarus::Mod::Config.read([:config]) end |