}
# Look for arguments
-if [ $# -eq 0 ]; then
- usage
- exit 3
-fi
while getopts ":abcdhlLnv" arg
do
case ${arg} in
done
shift $((OPTIND-1))
+if [ $# -eq 0 ]; then
+ echo "Please enter a valid charfile, or use charsel -h for help."
+ charsel -l
+ exit 3
+fi
# Redefine charfile and check file validity
CHARFILE="$CHARDIR/charfiles/$1"
existence