diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-12-02 09:49:30 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-12-05 16:22:12 +0100 |
commit | 61ce2ca1bbf4f8042c77e50a37297003bdebd01d (patch) | |
tree | 4f9e9b1b7b10229c13efb91a3d0f23b93a6f179d /contrib/paclist.in | |
parent | 5490cd6eb22752d2eac5410152d239c50224dbc1 (diff) | |
download | pacman-61ce2ca1bbf4f8042c77e50a37297003bdebd01d.tar.gz pacman-61ce2ca1bbf4f8042c77e50a37297003bdebd01d.tar.xz |
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-x | contrib/paclist.in | 2 |
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##*/}" |