aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/cli
diff options
context:
space:
mode:
authorMarkus Reiter2017-06-03 01:29:29 +0200
committerMarkus Reiter2017-06-06 16:40:03 +0200
commitb40e4afac539cc375597d5ddd0530b8a4b652382 (patch)
treea3708b155066106f2bd9d6c6f90b86d75b3aea5f /Library/Homebrew/cask/lib/hbc/cli
parent2fa8596302b4dadfb7a58d8529e2f4a8609c0884 (diff)
downloadbrew-b40e4afac539cc375597d5ddd0530b8a4b652382.tar.bz2
Fix parsing `--require-sha` and `HOMEBREW_CASK_OPTS`.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb1
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/install.rb1
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/search.rb4
3 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb b/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb
index cdb7f5ec8..c83fc3e42 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb
@@ -9,6 +9,7 @@ module Hbc
option "--debug", :debug, false
option "--verbose", :verbose, false
option "--outdated", :outdated_only, false
+ option "--require-sha", :require_sha, false
def self.command_name
@command_name ||= name.sub(/^.*:/, "").gsub(/(.)([A-Z])/, '\1_\2').downcase
diff --git a/Library/Homebrew/cask/lib/hbc/cli/install.rb b/Library/Homebrew/cask/lib/hbc/cli/install.rb
index 72f85fc69..4d0abc677 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/install.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/install.rb
@@ -3,7 +3,6 @@ module Hbc
class Install < AbstractCommand
option "--force", :force, false
option "--skip-cask-deps", :skip_cask_deps, false
- option "--require-sha", :require_sha, false
def initialize(*)
super
diff --git a/Library/Homebrew/cask/lib/hbc/cli/search.rb b/Library/Homebrew/cask/lib/hbc/cli/search.rb
index b24091aef..9d1a16f15 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/search.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/search.rb
@@ -1,10 +1,6 @@
module Hbc
class CLI
class Search < AbstractCommand
- def initialize(*args)
- @args = args
- end
-
def run
results = self.class.search(*args)
self.class.render_results(*results)