#!/usr/bin/env ruby
# Copyright (C) 2003-2005 Kouichirou Eto, All rights reserved.

base = File.dirname(__FILE__)+"/.." # /usr/local/qwik/bin -> /usr/local/qwik
$LOAD_PATH.unshift(File.expand_path(base+"/lib"))
$LOAD_PATH.unshift(File.expand_path(base+"/compat"))

require "qwik/config"
require "qwik/util"
require "qwik/qp"

def main(argv)
  config = Qwik::Config.new
  config.parse_argv(argv)
  puts config.log_dir

  dirs = Pathname.glob("#{config.log_dir}*")
  qp dirs

#  config.log_dir.path.l {
#  }

end
main(ARGV)
