lib/nanoc/cli/commands/show-plugins.rb in nanoc-4.1.3 vs lib/nanoc/cli/commands/show-plugins.rb in nanoc-4.1.4

- old
+ new

@@ -8,10 +8,10 @@ module Nanoc::CLI::Commands class ShowPlugins < ::Nanoc::CLI::CommandRunner def run # Check arguments - if arguments.size != 0 + if arguments.any? raise Nanoc::Int::Errors::GenericTrivial, "usage: #{command.usage}" end # Get list of plugins (before and after) plugins_before = Nanoc::Int::PluginRegistry.instance.all