aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/update-test.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-09-08 09:05:00 +0100
committerMike McQuaid2016-09-08 09:05:00 +0100
commitebdb879fe4b0d14bcc92480a3dd193c93f94a23f (patch)
tree03b1f4e1fce2db8e58f930800ee97f86e4cb08b7 /Library/Homebrew/dev-cmd/update-test.rb
parent9586390418dbcb8655bf7c62bb315c2a2090722e (diff)
downloadbrew-ebdb879fe4b0d14bcc92480a3dd193c93f94a23f.tar.bz2
Add `--help` to all developer commands.
Also, flag those that we never want to be in a manpage.
Diffstat (limited to 'Library/Homebrew/dev-cmd/update-test.rb')
-rw-r--r--Library/Homebrew/dev-cmd/update-test.rb22
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")