Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib/paclist.in
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-12-02 09:49:30 +0100
committerDan McGee <dan@archlinux.org>2011-12-05 09:22:12 -0600
commit61ce2ca1bbf4f8042c77e50a37297003bdebd01d (patch)
tree4f9e9b1b7b10229c13efb91a3d0f23b93a6f179d /contrib/paclist.in
parent5490cd6eb22752d2eac5410152d239c50224dbc1 (diff)
contrib/paclist: Add "--help" command line parameter
Be consistent with all other contrib scripts and support the "--help" command line switch. Fixes FS#27258. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib/paclist.in')
-rwxr-xr-xcontrib/paclist.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/paclist.in b/contrib/paclist.in
index 84144f78..06b06f2c 100755
--- a/contrib/paclist.in
+++ b/contrib/paclist.in
@@ -27,7 +27,7 @@ if ! type gettext &>/dev/null; then
}
fi
-if [[ -z $1 ]]; then
+if [[ -z $1 || $1 = -@(h|-help) ]]; then
printf '%s - List all packages installed from a given repo\n' "${0##*/}"
printf 'Usage: %s <repo>\n' "${0##*/}"
printf 'Example: %s testing\n' "${0##*/}"