Sha256: 697c765cde9e6e52386788d1c3451ec8388f14b439e421af340e54571d7f47f6
Contents?: true
Size: 491 Bytes
Versions: 6
Compression:
Stored size: 491 Bytes
Contents
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
Version data entries
6 entries across 6 versions & 1 rubygems