diff options
| -rw-r--r-- | main.c | 38 |
1 files changed, 18 insertions, 20 deletions
@@ -1153,28 +1153,28 @@ int main(int argc, char *argv[]) { // TODO Maybe rearrange the order of the command. fprintf(stdout, "Usage: ttt [OPTION]... [FILE]...\n" - " -i, --import-csv [FILE] Imports CSV file to database. First row is discarded.\n" - " -e, --export-csv [FILE] Exports database to CSV file.\n" - " -n, --no-autosave Disable autosave feature. Only saves on exit.\n" + " -i, --import-csv [FILE] Import CSV file to database (discard first row).\n" + " -e, --export-csv [FILE] Export database to CSV file.\n" + " -n, --no-autosave Disable autosave feature (only save on exit).\n" " -h, --help Display this help and exit.\n" " -v, --version Output version information and exit.\n" "\n" "Commands\n" - " a, A Archives selected task (except if active).\n" - " u, U Unarchives selected task.\n" - " c, C Selectes currently active task.\n" - " d, D Duplicates selected task.\n" - " n, N Creates new task.\n" - " m, M Moves selected task to position.\n" - " g, G Selects task by position.\n" - " q, Q Saves changes and exits.\n" - " F2 Renames selected task.\n" - " F5 Recalculates total times.\n" - " TAB Toggles archive view.\n" - " BACKSPACE Resets times for selected task.\n" - " DELETE Deletes selected task (except if active).\n" - " SPACE, ENTER Toggles selected task as active/inactive.\n" - " 1, 2, 3, 4, 5, 6, 7 Edit time of current task for the Nth day of week:\n" + " a, A Archive selected task (except if active).\n" + " u, U Unarchive selected task.\n" + " c, C Select currently active task.\n" + " d, D Duplicate selected task.\n" + " n, N Create new task.\n" + " m, M Move selected task to position.\n" + " g, G Select task by position.\n" + " q, Q Save changes and exit.\n" + " F2 Rename selected task.\n" + " F5 Recalculate total times.\n" + " TAB Toggle archive view.\n" + " BACKSPACE Reset times for selected task.\n" + " DELETE Delete selected task (except if active).\n" + " SPACE, ENTER Toggle selected task as active/inactive.\n" + " 1, 2, 3, 4, 5, 6, 7 Edit selected task time for the Nth day of week:\n" " =# sets # seconds;\n" " -# subtracts # seconds;\n" " # adds # seconds;\n" @@ -1373,7 +1373,6 @@ int main(int argc, char *argv[]) { reset_task_times(db, selected_task); trigger_autosave(); } - break; } @@ -1495,7 +1494,6 @@ int main(int argc, char *argv[]) { if (getch() == '\n') { delete_task(db, selected_task); - trigger_autosave(); } break; |
