2 Dec
2011
2 Dec
'11
8:49 a.m.
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> --- contrib/paclist.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/contrib/paclist.in b/contrib/paclist.in index 84144f7..06b06f2 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##*/}" -- 1.7.7.4