--cellar: move help to documentation comment

This commit is contained in:
Martin Afanasjew 2016-04-17 09:15:18 +02:00
parent bab823288f
commit 046b481806
2 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,11 @@
#: * `--cellar`:
#: Display Homebrew's Cellar path. *Default:* `$(brew --prefix)/Cellar`, or if
#: that directory doesn't exist, `$(brew --repository)/Cellar`.
#:
#: * `--cellar` <formula>:
#: Display the location in the cellar where <formula> would be installed,
#: without any sort of versioned directory as the last path.
module Homebrew module Homebrew
def __cellar def __cellar
if ARGV.named.empty? if ARGV.named.empty?

View File

@ -50,14 +50,6 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note
<%= commands.join("\n") %> <%= commands.join("\n") %>
* `--cellar`:
Display Homebrew's Cellar path. *Default:* `$(brew --prefix)/Cellar`, or if
that directory doesn't exist, `$(brew --repository)/Cellar`.
* `--cellar` <formula>:
Display the location in the cellar where <formula> would be installed,
without any sort of versioned directory as the last path.
* `--env`: * `--env`:
Show a summary of the Homebrew build environment. Show a summary of the Homebrew build environment.