
This seems like it was a bug before the recent change to remove OpenStruct from `Homebrew::CLI::Args` but it was failing silently before. Now we pass the args to the `Cask::Info.info` method so that when they eventually reach the `Utils::Analytics.output_analytics` method they are present as expected. Example error fragment: ```console $ set -e HOMEBREW_NO_ANALYTICS $ brew info iterm2 --cask --verbose ==> iterm2: 3.5.10 (auto_updates) https://iterm2.com/ Installed /usr/local/Caskroom/iterm2/3.5.4 (91.7MB) From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/i/iterm2.rb ==> Name iTerm2 ==> Description Terminal emulator as alternative to Apple's Terminal app ==> Artifacts iTerm.app (App) Error: undefined method `analytics?' for an instance of Homebrew::CLI::Args /usr/local/Homebrew/Library/Homebrew/utils/analytics.rb:248:in `output_analytics' /usr/local/Homebrew/Library/Homebrew/utils/analytics.rb:342:in `cask_output' /usr/local/Homebrew/Library/Homebrew/cask/info.rb:39:in `info' ```
Library
This directory contains all the code run by the official brew
command in Homebrew
and all formulae (package descriptions) in taps (repositories containing formulae) in Taps
subdirectories.