I take it you want code to detect the final character of the final arg, and tell whether it was a period or not?
Code:

#!/bin/bash
all="$@"
if [ "${all##*.}" = "" ]; then
echo "ended with a dot"
else
echo "did not end with a dot"
fi