diff options
| author | Markus Reiter | 2017-05-21 00:15:56 +0200 |
|---|---|---|
| committer | Markus Reiter | 2017-05-22 02:51:17 +0200 |
| commit | df1864ee435c1c48f87344800d2e7cf055a12f93 (patch) | |
| tree | 338018ac56614b5d2a8fe313fb8e1c0a36346032 /Library/Homebrew/cask/lib/hbc/cli/info.rb | |
| parent | debe4540e4ff76be80467a2bf32bfd32dbfc72eb (diff) | |
| download | brew-df1864ee435c1c48f87344800d2e7cf055a12f93.tar.bz2 | |
Add `CLI::Options` DSL.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli/info.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/info.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/info.rb b/Library/Homebrew/cask/lib/hbc/cli/info.rb index 1a63b7747..dcfc8d9bb 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/info.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/info.rb @@ -1,13 +1,13 @@ module Hbc class CLI class Info < AbstractCommand - def initialize(*args) - @cask_tokens = self.class.cask_tokens_from(args) - raise CaskUnspecifiedError if @cask_tokens.empty? + def initialize(*) + super + raise CaskUnspecifiedError if args.empty? end def run - @cask_tokens.each do |cask_token| + args.each do |cask_token| odebug "Getting info for Cask #{cask_token}" cask = CaskLoader.load(cask_token) |
