brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

Formula.option

Options can be used as arguments to `brew install`.
To switch features on/off: `"with-something"` or `"with-otherthing"`.
To use other software: `"with-other-software"` or `"without-foo"`
Note, that for {.depends_on} that are `:optional` or `:recommended`, options
are generated automatically.

There are also some special options:
- `:universal`: build a universal binary/library (e.g. on newer Intel Macs
  this means a combined x86_64/x86 binary/library).
<pre>option "with-spam", "The description goes here without a dot at the end"</pre>
<pre>option "with-qt", "Text here overwrites the autogenerated one from 'depends_on "qt" => :optional'"</pre>
<pre>option :universal</pre>

Source | Google | Stack overflow

Edit

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

cd brew

open Library/Homebrew/formula.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Formula-option-for-pr


# Commit to git

git add Library/Homebrew/formula.rbgit commit -m "better docs for Formula.option"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Formula-option-for-pr

hub pull-request


# Celebrate!