2
0
Fork 0
mirror of https://github.com/alexanderepstein/Bash-Snippets synced 2018-11-08 02:59:35 +01:00

Adding usage to todo tool

This commit is contained in:
Alex Epstein 2017-07-15 20:40:39 -04:00
parent 79091ae054
commit 97d9d7bc44

View file

@ -125,6 +125,25 @@ getTasks()
fi
}
usage()
{
echo "Todo"
echo "Description: A simplistic commandline todo list."
echo "Usage: todo [flags] or todo [flags] [arguments]"
echo " -c Clear all the current tasks"
echo " -r Remove the following task number"
echo " -g Get the current tasks"
echo " -a Add the following task"
echo " -u Update Bash-Snippet Tools"
echo " -h Show the help"
echo " -v Get the tool version"
echo "Examples:"
echo " todo -a My very first task"
echo " todo -r 1"
echo " todo -g"
echo " todo -c"
}
clearAllTasks()
{
rm -f ~/.todo/list.txt || return 1