From aaf2a397f0252dc62ae3bac6bb28594100c2e181 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 13 Nov 2012 16:50:19 -0600 Subject: Document some recently added options --- Library/Contributions/brew_bash_completion.sh | 14 ++++---------- Library/Contributions/manpages/brew.1.md | 14 +++++++++----- 2 files changed, 13 insertions(+), 15 deletions(-) (limited to 'Library') diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index a645ebeaa..848f9fb9f 100644 --- a/Library/Contributions/brew_bash_completion.sh +++ b/Library/Contributions/brew_bash_completion.sh @@ -118,7 +118,7 @@ _brew_create () local cur="${COMP_WORDS[COMP_CWORD]}" case "$cur" in --*) - __brewcomp "--autotools --cmake --no-fetch" + __brewcomp "--autotools --cmake --no-fetch --set-name --set-version" return ;; esac @@ -221,14 +221,8 @@ _brew_link () local cur="${COMP_WORDS[COMP_CWORD]}" case "$cur" in --*) - if __brewcomp_words_include "--dry-run"; then - return - elif __brewcomp_words_include "--force"; then - return - else - __brewcomp "--dry-run --force" - return - fi + __brewcomp "--dry-run --overwrite" + return ;; esac __brew_complete_installed @@ -338,7 +332,7 @@ _brew_uses () local cur="${COMP_WORDS[COMP_CWORD]}" case "$cur" in --*) - __brewcomp "--installed" + __brewcomp "--installed --recursive" return ;; esac diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index 21839477f..521838e02 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -64,7 +64,7 @@ For the full command list, see the COMMANDS section. versions of formula. Note downloads for any installed formula will still not be deleted. If you want to delete those too: `rm -rf $(brew --cache)` - * `create [--autotools|--cmake] [--no-fetch]` : + * `create [--autotools|--cmake] [--no-fetch] [--set-name ] [--set-version ]` : Generate a formula for the downloadable file at and open it in `EDITOR`. Homebrew will attempt to automatically derive the formula name and version, but if it fails, you'll have to make your own template. The wget @@ -76,6 +76,9 @@ For the full command list, see the COMMANDS section. If `--no-fetch` is passed, Homebrew will not download to the cache and will thus not add the MD5 to the formula for you. + The options `--set-name` and `--set-version` each take an argument and allow + you to explicitly set the name and version of the package you are creating. + * `deps [--1] [-n] [--tree] [--all]` : Show 's dependencies. @@ -88,7 +91,7 @@ For the full command list, see the COMMANDS section. If `--all` is passed, show dependencies for all formulae. - * `diy [--set-name] [--set-version]`: + * `diy [--set-name ] [--set-version ]`: Automatically determine the installation prefix for non-Homebrew software. Using the output from this command, you can install your own software into @@ -289,9 +292,10 @@ For the full command list, see the COMMANDS section. If are given, upgrade only the specified brews. - * `uses [--installed]` : - Show the formulas that specify as a dependency. The list is - not recursive; only one level of dependencies is resolved. + * `uses [--installed] [--recursive]` : + Show the formulas that specify as a dependency. + + Use `--recursive` to resolve more than one level of dependencies. If `--installed` is passed, only list installed formulae. -- cgit v1.2.3