Allow --wrap option to be passed to bat

This commit is contained in:
Mehdi Rafee 2024-07-10 13:45:23 +03:30 committed by Ethan P.
parent ac4f8710ba
commit 92dcb78765

View File

@ -28,7 +28,7 @@ SHIFTOPT_SHORT_OPTIONS="SPLIT"
while shiftopt; do while shiftopt; do
case "$OPT" in case "$OPT" in
--export-env) OPT_EXPORT_ENV=true ;; --export-env) OPT_EXPORT_ENV=true ;;
--paging|--pager) shiftval; FORWARDED_ARGS+=("${OPT}=${OPT_VAL}"); --paging|--pager|--wrap) shiftval; FORWARDED_ARGS+=("${OPT}=${OPT_VAL}");
BAT_ARGS+=("${OPT}=${OPT_VAL}") ;; BAT_ARGS+=("${OPT}=${OPT_VAL}") ;;
*) MAN_ARGS+=("$OPT") ;; *) MAN_ARGS+=("$OPT") ;;
esac esac