t) textcolor="${OPTARG}" ;;
b) backcolor="${OPTARG}" ;;
d) deco="${OPTARG}" ;;
+ *) echo "Invalid argument '${OPTARG}'" ;;
esac
done
1) decotypes="bold" ;;
4) decotypes="smul" ;;
5) decotypes="blink" ;;
+ *) echo "Invalid argument '${deco}'" ;;
esac
fi
-echo "$([[ -n "${textcolor}" ]] && tput setaf ${textcolor})$([[ -n "${backcolor}" ]] && tput setab ${backcolor})$([[ -n "${decotypes}" ]] && tput ${decotypes})${@}$(tput sgr0)"
\ No newline at end of file
+echo "$([[ -n "${textcolor}" ]] && tput setaf "${textcolor}")$([[ -n "${backcolor}" ]] && tput setab "${backcolor}")$([[ -n "${decotypes}" ]] && tput "${decotypes}")${*}$(tput sgr0)"
\ No newline at end of file