diff --git a/Library/Homebrew/cask/lib/hbc/cli/base.rb b/Library/Homebrew/cask/lib/hbc/cli/base.rb index e218a47dd2cab38bac0ea8f99ebdf485ae40adfd..3301cad91cdd7c1ebda0d77f5e83adb5c9bd9704 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/base.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/base.rb @@ -14,7 +14,7 @@ module Hbc end def self.help - "No help available for the #{command_name} command" + nil end def self.needs_init? diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb index dec3eaa871815391121571e96b9749def91cd2ac..60df4bc8c7e1cbb3ad1a61981d45af417646039c 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb @@ -23,6 +23,10 @@ module Hbc args.reject { |a| a.empty? || a.chars.first == "-" } end + def self.help + "audit all modified Casks in a given commit range" + end + def self.usage <<-EOS.undent Usage: brew cask _audit_modified_casks [options...] <commit range> diff --git a/Library/Homebrew/test/cask/cli_spec.rb b/Library/Homebrew/test/cask/cli_spec.rb index 0dac89b0e8d7f504017b6e9fc5ee051727c9e9e1..9bf14fd892eb52d0a5ac1cf5d70fd354b1970396 100644 --- a/Library/Homebrew/test/cask/cli_spec.rb +++ b/Library/Homebrew/test/cask/cli_spec.rb @@ -63,4 +63,10 @@ describe Hbc::CLI, :cask do described_class.process("noop") end end + + it "provides a help message for all commands" do + described_class.command_classes.each do |command_class| + expect(command_class.help).to match(/\w+/), command_class.name + end + end end