@ -52,22 +52,19 @@ while getopts ':sdt:h' arg; do
esac
done
echo "${opt_tags[*]}"
exit 0
# Handle non-option arguments
if [[ $# -gt 2 ]]; then
badarg "Too many arguments"
fi
if [[ -n $1 ]]; then
if [[ $# -ge 1 ]]; then
directory="$1"
else
directory=$(pwd)
if [[ -n $2 ]]; then
if [[ $# -ge 2 ]]; then
name="$2"
name=$(basename "$directory")