exe/chutney in chutney-3.2.1 vs exe/chutney in chutney-3.3.0

- old
+ new

@@ -8,20 +8,26 @@ require 'chutney/formatter/rainbow_formatter' require 'optparse' formatters = Set.new +# rubocop:disable Metrics/BlockLength OptionParser.new do |opts| opts.banner = 'Usage: chutney [files]' opts.on('-f', '--format [formatter]', 'One of JSONFormatter, PieFormatter or RainbowFormatter (default).') do |formatter| raise 'No Such Formatter' unless %w[JSONFormatter PieFormatter RainbowFormatter].include? formatter formatters << formatter end + opts.on('-v', '--version', 'Display the version.') do + puts Chutney::VERSION + exit + end + opts.on('-l', '--linters', 'List the linter status by this configuration and exit') do pastel = Pastel.new chutney_config = Chutney::ChutneyLint.new.configuration @@ -36,9 +42,10 @@ end end exit end end.parse! +# rubocop:enable Metrics/BlockLength formatters << 'RainbowFormatter' if formatters.empty? files = ARGV.map { |pattern| Dir.glob(pattern) }.flatten files = Dir.glob('features/**/*.feature') if ARGV.empty?