- #short options
- elif [[ ${argument:0:1} == "-" ]] && [[ ${argument:1:1} != "-" ]] && [[ ${#argument} -ge 2 ]]
- then
- index=0
- while index=$((index+1)) && [[ $index -lt ${#argument} ]]
- do
- [[ ${argument:$index:1} == h ]] && usage && $_exit 0
- [[ ${argument:$index:1} == f ]] && force="-f" && continue
- echo "invalid option '${argument:$index:1}'? Type -h for help" >&2 && $_exit 1
- done
- continue