require 'thor'
require_relative 'rune-optimizer.rb'

class RuneCLI < Thor
  desc 'optimize', 'optimize runes'
  option :scrape, type: :boolean, default: :false
  def optimize(scrape: :false)
    run_optimizer(scrape)
  end
end

RuneCLI.start(ARGV)

require 'thor'
require_relative 'rune-optimizer.rb'

class RuneCLI < Thor
  desc 'optimize', 'optimize runes'
  option :scrape, type: :boolean
  option :page_number, type: :numeric, default: 2
  def optimize
    run_optimizer(options[:scrape], options[:page_number])
  end
end

RuneCLI.start(ARGV)

Enable setting scrape and page_number from CLI
Enable setting scrape and page_number from CLI
