How to give options to Homebrew install

homebrew

Is it possible to give options to a Homebrew installation package from the command line, something like this (which does not seem to work):

brew install tesseract --all-languages

Or do you have to use brew edit tesseract and actually edit your desired options into the file that opens?

(If the latter is the only way, why did they choose to do it like this? It seems very cumbersome.)

EDIT: I did uninstall, then install again with the option added, and now it seems to react. 1. Homebrew should have been able to understand the change without uninstalling first. 2. I can't see the option thing documented or mentioned anywhere.

Best Answer

As of 2 February 2019, Homebrew no longer supports options link.

So you would need to edit the install file.

brew edit tesseract

(Hopefully someone finds an easier way to accomplish this behavior. But, for now, it seems like is gone for the time being.)