fix: do not consider "-s" if it has no value

This commit is contained in:
Rejman Nascimento 2024-02-23 16:07:40 -03:00
parent 5b663d616a
commit e1f45d5fa7

View file

@ -51,7 +51,7 @@ build_message () {
i=$next
fi
if [[ "$flag" =~ (-s|--scope) ]]; then
if [[ "$flag" =~ (-s|--scope) && -n "$value" ]]; then
local scope="($value)"
i=$next
fi