mirror of
https://github.com/alexanderepstein/Bash-Snippets
synced 2018-11-08 02:59:35 +01:00
Adding more arguments to simulate options in todo
This commit is contained in:
parent
609c8e8042
commit
c3fab13e79
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user