Sha256: 8b35e197087bfb9bc4f5fea08372a7f764ae4611b61990929c9352e58505c65e

Contents?: true

Size: 744 Bytes

Versions: 2

Compression:

Stored size: 744 Bytes

Contents

#!/usr/bin/env ruby

require 'optparse'
require File.expand_path(File.dirname(__FILE__) + "/../lib/seo_checker")

options = {}
opts = OptionParser.new do |opts|
  opts.banner = "Usage: seo_checker [OPTIONS] website_url"

  opts.on('-b', '--batch BATCH_SIZE', 'get a batch size of pages') do |batch|
    options[:batch_size] = batch
  end

  opts.on('-i', '--interval INTERVAL_TIME', 'interval time between two batches') do |interval|
    options[:interval_time] = interval
  end

  opts.on('--debug') do
    options[:logger] = true
  end

  opts.on_tail('-h', '--help', 'Show this message') do
    puts opts
    exit
  end

  opts.parse!
end

if ARGV.empty?
  puts opts.help
  exit
end

checker = SEOChecker.new(ARGV[0], options)
checker.check

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
seo_checker-0.2.5 bin/seo_checker
seo_checker-0.2.4 bin/seo_checker