From b36a858ab8d99d0bf22f3997725e22404ba59e37 Mon Sep 17 00:00:00 2001 From: Alad Wenter Date: Sun, 21 May 2023 15:50:23 +0200 Subject: [PATCH] pkglist: remove deprecated options --- lib/aur-pkglist | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/aur-pkglist b/lib/aur-pkglist index 68a0c9ca..f72dfc95 100755 --- a/lib/aur-pkglist +++ b/lib/aur-pkglist @@ -33,10 +33,10 @@ usage() { exit 1 } -opt_short='t:bqsivFPJISu' +opt_short='t:bqsivFPJu' opt_long=('pkgbase' 'search' 'info' 'fixed-strings' 'perl-regexp' 'plain' 'ttl:' 'users' 'verify' 'quiet' 'systime') -opt_hidden=('dump-options' 'time:' 'json') +opt_hidden=('dump-options' 'time:') if opts=$(getopt -o "$opt_short" -l "$(args_csv "${opt_long[@]}" "${opt_hidden[@]}")" -n "$argv0" -- "$@"); then eval set -- "$opts" @@ -72,13 +72,6 @@ while true; do # Deprecated options -u) printf >&2 'deprecation notice: %s -u is an alias for --quiet\n' "$argv0" mode=none ;; - -I) printf >&2 'deprecation notice: %s -I is an alias for --info\n' "$argv0" - pkglist=packages-meta-ext-v1.json ;; - -S) printf >&2 'deprecation notice: %s -S is an alias for --search\n' "$argv0" - pkglist=packages-meta-v1.json ;; - -J|--json) - printf >&2 'deprecation notice: %s --json is an alias for --info | jq\n' "$argv0" - mode=plain ;; --dump-options) printf -- '--%s\n' "${opt_long[@]}" ${AUR_DEBUG+"${opt_hidden[@]}"} printf -- '%s' "${opt_short}" | sed 's/.:\?/-&\n/g' -- 2.11.4.GIT