问题
I know that a Homebrew formula can check Boolean options (--with-foo, --without-bar) passed to brew install.
Can brew install accept options with values, like --foo=/path/to/bar?
回答1:
It turns out you can use ARGV.value.
e.g.
option "with-bin-path=", "Path for binary path"
# ...
binpath = ARGV.value("with-bin-path")
See https://github.com/Homebrew/brew/issues/1803
来源:https://stackoverflow.com/questions/22564690/can-a-homebrew-formula-accept-options-with-values-for-install-like-foo-bar