From 429656ed252e596f8c4e32216a7314f6172c4e48 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 15 May 2018 13:57:54 +0200 Subject: bin/db-update,bin/delete-packages,bin/get-package-updates -b|--block -> -w|--wait to unitise flags --- bin/delete-packages | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin/delete-packages') diff --git a/bin/delete-packages b/bin/delete-packages index 0279be8..520b664 100755 --- a/bin/delete-packages +++ b/bin/delete-packages @@ -25,17 +25,17 @@ usage() { >&2 echo ' delete obsolete binary packages.' >&2 echo '' >&2 echo 'possible options:' - >&2 echo ' -b|--block: If necessary, wait for lock blocking.' >&2 echo ' -h|--help: Show this help and exit.' >&2 echo ' -n|--no-action: Only print what would be deleted.' + >&2 echo ' -w|--wait: If necessary, wait for lock blocking.' [ -z "$1" ] && exit 1 || exit "$1" } eval set -- "$( - getopt -o bhn \ - --long block \ + getopt -o hnw \ --long help \ --long no-action \ + --long wait \ -n "$(basename "$0")" -- "$@" || \ echo usage )" @@ -46,15 +46,15 @@ no_action=false while true do case "$1" in - -b|--block) - block_flag='' - ;; -h|--help) usage 0 ;; -n|--no-action) no_action=true ;; + -w|--wait) + block_flag='' + ;; --) shift break -- cgit v1.2.3-70-g09d2