Sha256: 136fa000038e7576a1d2c78c25543937d36486844a40aa522c3d44099253c09b

Contents?: true

Size: 636 Bytes

Versions: 2

Compression:

Stored size: 636 Bytes

Contents

#!/usr/bin/env ruby

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

options = {}
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_tail('-h', '--help', 'Show this message') do
    puts opts
    exit
  end

  opts.parse!
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.0 bin/seo_checker
seo_checker-0.1.0 bin/seo_checker