From ebdb879fe4b0d14bcc92480a3dd193c93f94a23f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 8 Sep 2016 09:05:00 +0100 Subject: Add `--help` to all developer commands. Also, flag those that we never want to be in a manpage. --- Library/Homebrew/dev-cmd/update-test.rb | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'Library/Homebrew/dev-cmd/update-test.rb') 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=`] [`--before=`] [`--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=` is passed, use `` as the start commit. +#: +#: If `--before=` is passed, use the commit at `` 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= # using as start commit - # brew update-test --before= # using commit at 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") -- cgit v1.2.3