bin/cookstyle in cookstyle-7.6.1 vs bin/cookstyle in cookstyle-7.7.2

- old
+ new

@@ -10,11 +10,16 @@ unless ARGV.include?('--fail-level') ARGV << '--fail-level' ARGV << 'C' end -# if only -v is passed we'll get 3 args (-v, --fail-level, and C) -if ARGV.size == 3 && %w(-v --version).include?(ARGV.first) +# we want to link to our docs +unless ARGV.include?('--display-style-guide') + ARGV << '--display-style-guide' +end + +# if only -v is passed we'll get 4 args (-v, --fail-level. --display-style-guide, and C) +if ARGV.size == 4 && %w(-v --version).include?(ARGV.first) puts "Cookstyle #{Cookstyle::VERSION}" print ' * RuboCop ' end load Gem.bin_path('rubocop', 'rubocop')