module Synt

Constants

VERSION

Public Instance Methods

new() click to toggle source
# File lib/synt.rb, line 7
def new
  # TODO: move to CLI? this is lib.
  opts = CLI.parse
  diff = Similar.compare opts

  puts "Inputs are #{diff}% similar."

  if opts.threshold? && diff < opts["min-threshold"].to_f
    puts "Similarity threshold of #{opts["min-threshold"]}% hit."
    exit 1
  end
end