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:
parent
79091ae054
commit
97d9d7bc44
1 changed files with 19 additions and 0 deletions
19
todo/todo
19
todo/todo
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue