Added some checks in the "del" command (in case EOF is encountered in
[ctodo.git] / help.c
blob0a5af048c31d3aee9fd0fddccdc5fdb3d44b27db
1 #include <help.h>
2 #include <stdio.h>
4 int help(sqlite3 *db, MArray tokens) {
5 printf("Available commands:\n");
6 printf(" add adds a todo\n");
7 printf(" del deletes a single todo\n");
8 printf(" help prints this help\n");
9 printf(" list lists all the todos\n");
10 printf(" quit exits the program\n");
11 printf(" show shows a single todo\n");
12 printf(" mark marks a todo as done\n");
13 printf(" unmark marks a todo as not done\n");
15 return 0;