Sha256: 7e59683cffb607c8d27860e51501c337a9f29835b7e7bc9acc65ba4bb26feb93
Contents?: true
Size: 505 Bytes
Versions: 10
Compression:
Stored size: 505 Bytes
Contents
require "rubycritic" require "rubycritic/cli/options" module Rubycritic module Cli class Application STATUS_SUCCESS = 0 STATUS_ERROR = 1 def initialize(argv) @options = Options.new(argv) end def execute parsed_options = @options.parse ::Rubycritic.create(parsed_options).execute STATUS_SUCCESS rescue OptionParser::InvalidOption => error $stderr.puts "Error: #{error}" STATUS_ERROR end end end end
Version data entries
10 entries across 10 versions & 1 rubygems