The opt module does not show the default values of options in the
help text, leaving the user guessing what the values of options are
if they are not specified on the command line.
This commit modifies `opt_print_help()` so that it displays the
default values of options that have a value and a default set.
printf "\t-%s\t--%s\t%s\n" \
"$short" "$long" "$desc"
+ if (( ${__opt_flags["$long"]} & __opt_flag_has_value )) &&
+ array_contains "$long" "${!__opt_default[@]}"; then
+ printf '\t\t\t(Default: %s)\n' "${__opt_default[$long]}"
+ fi
done | column -s $'\t' -t
return 2