Compare commits

...

1 Commits

Author SHA1 Message Date
d0344b6c56 fix: do not omit false defaults 2025-11-03 07:25:54 +02:00

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