class RubyCritic::Cli::Application
def execute
def execute parsed_options = @options.parse.to_h reporter = RubyCritic::CommandFactory.create(parsed_options).execute print(reporter.status_message) reporter.status rescue OptionParser::InvalidOption => error warn "Error: #{error}" STATUS_ERROR end
def initialize(argv)
def initialize(argv) @options = Options.new(argv) end
def print(message)
def print(message) $stdout.puts message end