# File lib/whenever/command_line.rb, line 11 def initialize(options={}) @options = options @options[:file] ||= 'config/schedule.rb' @options[:identifier] ||= default_identifier unless File.exists?(@options[:file]) warn("[fail] Can't find file: #{@options[:file]}") exit(1) end if @options[:update] && @options[:write] warn("[fail] Can't update AND write. choose one.") exit(1) end end