brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

BuildOptions#head?

True if a {Formula} is being built with {Formula.head} instead of {Formula.stable}.
<pre>args << "--some-new-stuff" if build.head?</pre>
<pre># If there are multiple conditional arguments use a block instead of lines.
 if build.head?
   args << "--i-want-pizza"
   args << "--and-a-cold-beer" if build.with? "cold-beer"
 end</pre>

Source | Google | Stack overflow

Edit

git clone [email protected]:homebrew/brew.git

cd brew

open Library/Homebrew/build_options.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-BuildOptions-head--for-pr


# Commit to git

git add Library/Homebrew/build_options.rbgit commit -m "better docs for BuildOptions#head?"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-BuildOptions-head--for-pr

hub pull-request


# Celebrate!