Adding more arguments to simulate options in todo

This commit is contained in:
Alex Epstein 2017-07-18 08:41:53 -04:00
parent 609c8e8042
commit c3fab13e79
1 changed files with 2 additions and 2 deletions

View File

@ -209,8 +209,8 @@ elif [[ $# == "1" ]];then
elif [[ $1 == "help" ]]; then
usage
exit 0
elif [[ $flag == "clear" ]];then clearAllTasks || exit 1
elif [[ $flag == "get" ]];then getTasks || exit 1
elif [[ $flag == "clear" || $1 == "clear" ]];then clearAllTasks || exit 1
elif [[ $flag == "get" || $1 == "list" || $1 == "get" ]];then getTasks || exit 1
fi
else
if [[ $flag == "add" || $1 == "add" ]];then addTask "${*:2}" && getTasks|| exit 1