aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMartin Afanasjew2016-04-17 09:15:18 +0200
committerMartin Afanasjew2016-04-20 13:45:26 +0200
commit046b4818069e4f5382edf256fa1d19e28d896309 (patch)
tree2dff8931524155937c1a19ed4c5b2695fd7f862b /Library/Homebrew/cmd
parentbab823288fbfbf8cd2cfa9fe5e71205e8afc938e (diff)
downloadbrew-046b4818069e4f5382edf256fa1d19e28d896309.tar.bz2
--cellar: move help to documentation comment
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/--cellar.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/--cellar.rb b/Library/Homebrew/cmd/--cellar.rb
index 02238cdb1..e1c641ce1 100644
--- a/Library/Homebrew/cmd/--cellar.rb
+++ b/Library/Homebrew/cmd/--cellar.rb
@@ -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
def __cellar
if ARGV.named.empty?