diff options
| author | Mike McQuaid | 2016-09-08 09:55:53 +0100 |
|---|---|---|
| committer | GitHub | 2016-09-08 09:55:53 +0100 |
| commit | 3dff6f61d80d38fafdbc80e8d390dce155a10de4 (patch) | |
| tree | 350f76fbab9ff638faee7dd3a45e038101556cf8 /Library/Homebrew/dev-cmd/update-test.rb | |
| parent | f3aaa8780ae578ff22a11d0aece6d1cddf382314 (diff) | |
| parent | ebdb879fe4b0d14bcc92480a3dd193c93f94a23f (diff) | |
| download | brew-3dff6f61d80d38fafdbc80e8d390dce155a10de4.tar.bz2 | |
Merge pull request #890 from MikeMcQuaid/dev-cmd-help
dev-cmd: add `--help` to all developer commands.
Diffstat (limited to 'Library/Homebrew/dev-cmd/update-test.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/update-test.rb | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/Library/Homebrew/dev-cmd/update-test.rb b/Library/Homebrew/dev-cmd/update-test.rb index cb2120216..1f8d0510b 100644 --- a/Library/Homebrew/dev-cmd/update-test.rb +++ b/Library/Homebrew/dev-cmd/update-test.rb @@ -1,12 +1,18 @@ +#: @hide_from_man_page +#: * `update-test` [`--commit=<sha1>`] [`--before=<date>`] [`--keep-tmp`]: +#: Runs a test of `brew update` with a new repository clone. +#: +#: If no arguments are passed, use `origin/master` as the start commit. +#: +#: If `--commit=<sha1>` is passed, use `<sha1>` as the start commit. +#: +#: If `--before=<date>` is passed, use the commit at `<date>` as the +#: start commit. +#: +#: If `--keep-tmp` is passed, retain the temporary directory containing +#: the new repository clone. + module Homebrew - # - # Usage: - # brew update-test # using origin/master as start commit - # brew update-test --commit=<sha1> # using <sha1> as start commit - # brew update-test --before=<date> # using commit at <date> as start commit - # - # Options: - # --keep-tmp Retain temporary directory containing the new clone def update_test cd HOMEBREW_REPOSITORY start_sha1 = if commit = ARGV.value("commit") |
