diff options
| author | Jack Nagel | 2012-11-13 16:50:19 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-11-13 16:56:49 -0600 |
| commit | aaf2a397f0252dc62ae3bac6bb28594100c2e181 (patch) | |
| tree | 6c5fbd1a709bff7ac35f00c0673054f5ae5597b6 /Library | |
| parent | 6c4c37a01f5356e82a64643dbf99f812e24d0d16 (diff) | |
| download | brew-aaf2a397f0252dc62ae3bac6bb28594100c2e181.tar.bz2 | |
Document some recently added options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Contributions/brew_bash_completion.sh | 14 | ||||
| -rw-r--r-- | Library/Contributions/manpages/brew.1.md | 14 |
2 files changed, 13 insertions, 15 deletions
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]` <URL>: + * `create [--autotools|--cmake] [--no-fetch] [--set-name <name>] [--set-version <version>]` <URL>: Generate a formula for the downloadable file at <URL> 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 <URL> 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]` <formula>: Show <formula>'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 <name>] [--set-version <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 <formulae> are given, upgrade only the specified brews. - * `uses [--installed]` <formula>: - Show the formulas that specify <formula> as a dependency. The list is - not recursive; only one level of dependencies is resolved. + * `uses [--installed] [--recursive]` <formula>: + Show the formulas that specify <formula> as a dependency. + + Use `--recursive` to resolve more than one level of dependencies. If `--installed` is passed, only list installed formulae. |
