fix: do not omit false defaults
This commit is contained in:
parent
fe7f293734
commit
d0344b6c56
6
barg
6
barg
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user