class Fastly

def self.get_options(*files)


--=

of the form
Then it overrides those options with command line options

C, stopping when it finds the first one.
Tries to load options from the file[s] passed in using,
#
def self.get_options(*files)
  options = {}
  files.each do |file|
    next unless File.exist?(file)
    options = load_config(file)
    break
  end
  while ARGV.size > 0 && ARGV[0] =~ /^-+(\w+)\=(\w+)$/
    options[$1.to_sym] = $2
    ARGV.shift
  end
  fail "Couldn't find options from command line arguments or #{files.join(', ')}" unless options.size > 0
  options
end