From 61ce2ca1bbf4f8042c77e50a37297003bdebd01d Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 2 Dec 2011 09:49:30 +0100 Subject: 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 Signed-off-by: Dan McGee --- contrib/paclist.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') 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 \n' "${0##*/}" printf 'Example: %s testing\n' "${0##*/}" -- cgit v1.2.3-24-g4f1b