fix: do not omit false defaults

This commit is contained in:
Tomas Mirchev 2025-11-03 07:25:54 +02:00
parent fe7f293734
commit d0344b6c56

6
barg
View File

@ -325,9 +325,9 @@ parse_arguments() {
echo "Error: Argument \"$dest\" required" >&2
return 1
fi
if [[ "$atype" == "flag" && ("$value" == "false" || "$value" == "0") ]]; then
continue
fi
# if [[ "$atype" == "flag" && ("$value" == "false" || "$value" == "0") ]]; then
# continue
# fi
if [[ -n "$value" ]]; then
BARG_PARSED_VALUES["$dest"]="$value"
fi