diff options
| author | Markus Reiter | 2017-05-24 20:16:09 +0200 |
|---|---|---|
| committer | Markus Reiter | 2017-05-24 20:16:09 +0200 |
| commit | d025e0e7ab690db01b1bf99540c3564ab753d8c6 (patch) | |
| tree | 8f58136b22014f526b81d3e97c49215d85c92f94 /Library | |
| parent | fdd9972aa7c6267fad8c5648a203d0e24a6fdf0a (diff) | |
| download | brew-d025e0e7ab690db01b1bf99540c3564ab753d8c6.tar.bz2 | |
Fix `--binaries` not using default value.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/options.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/options.rb b/Library/Homebrew/cask/lib/hbc/cli/options.rb index 84126caa5..75dd77212 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/options.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/options.rb @@ -24,10 +24,12 @@ module Hbc if [true, false].include?(default_value) define_method(:"#{method}?") do + return default_value unless instance_variable_defined?(:"@#{method}") instance_variable_get(:"@#{method}") == true end else define_method(:"#{method}") do + return default_value unless instance_variable_defined?(:"@#{method}") instance_variable_get(:"@#{method}") end end |
