lib/magellan/cli/command.rb in magellan-cli-0.4.0 vs lib/magellan/cli/command.rb in magellan-cli-0.4.1
- old
+ new
@@ -9,9 +9,10 @@
include Magellan::Cli::FileAccess
class << self
# override Thor::Base.start method
def start(given_args = ARGV, config = {})
+ Magellan::Cli::FileAccess.ensure_config_dir
# class_options verbose and version are defined in Magellan::Cli::Base
if (ARGV == ["-v"] || ARGV == ["--version"])
log_info(File.basename($0) << " " << Magellan::Cli::VERSION)
exit(0)
elsif ARGV.include?("-v") || ARGV.include?("--version")