require_relative "lib/compare_linker" require "optparse" options = {} opt = OptionParser.new opt.on("-f VAL", "--format VAL") { |val| case val when /t(ext)?/i options[:formatter] = CompareLinker::Formatter::Text.new when /m(arkdown|d)?/i options[:formatter] = CompareLinker::Formatter::Markdown.new end } opt.on("--post-comment") { options[:post_comment] = true } opt.parse! repo_full_name, pr_number = *ARGV if repo_full_name.nil? || pr_number.nil? puts <