require "optparse"
require "rubycritic"

module Rubycritic

  OptionParser.new do |opts|
    opts.banner = "Usage: rubycritic [options] [paths]"

    opts.on_tail("-v", "--version", "Show this version") do
      require "rubycritic/version"
      puts VERSION
      exit 0
    end

    opts.on_tail("-h", "--help", "Show this message") do
      puts opts
      exit 0
    end
  end.parse!

  ARGV << "." if ARGV.empty?
  Rubycritic.new.critique(ARGV)
  exit 0

end

require "optparse"
require "rubycritic"

module Rubycritic

  OptionParser.new do |opts|
    opts.banner = "Usage: rubycritic [options] [paths]"

    opts.on_tail("-v", "--version", "Show this version") do
      require "rubycritic/version"
      puts VERSION
      exit 0
    end

    opts.on_tail("-h", "--help", "Show this message") do
      puts opts
      exit 0
    end
  end.parse!

  ARGV << "." if ARGV.empty?
  puts "New critique at #{Rubycritic.new.critique(ARGV)}"
  exit 0

end

Print the href of the smells index page after running
Print the href of the smells index page after running
