def run(argv = [])
@opts.parse!(argv)
path = argv.delete_at(0)
proto = __DIR__('../../proto')
abort 'You need to specify a name for your application' if path.nil?
if File.directory?(path) and @options[:force] === false
abort 'The specified application already exists, use -f to overwrite it'
end
if File.directory?(path) and @options[:force] === true
FileUtils.rm_rf(path)
end
begin
FileUtils.cp_r(proto, path)
puts "The application has been generated and saved in #{path}"
rescue
abort 'The application could not be generated'
end
end