refactor: correct the check for extra arguments

This commit is contained in:
Mark Bailey 2024-11-06 08:24:27 -05:00
parent 96a9ecac4e
commit 34b59e3f19

View File

@ -102,7 +102,7 @@ _main() {
fi
_cmd="${1:-help}"
if ! [[ -z "$@" ]]; then
if ! [[ -z "${1+x}" ]]; then
shift
fi