# File texlog_extract, line 65
def handle_options
  ARGV.options do |opt|
    opt.banner ="Usage: #{MYNAME} [options] file[.log]"

    opt.on("-h","--help", "print this help and exit") do
        print opt.help
        quit
    end

    opt.on('-V','--version', 'print version and exit') do
      print_version(RELEASE)
    end

    opt.on("-w","--web", "web coloring instead of ansi") do
      String.colortype(:html)
      @sep = "<br>\n"
    end

    opt.on("-n","--nocolor", "no coloring") do
      String.colortype
    end

    opt.parse!
  end or quit("Option parsing error",1)
end