aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordam <dam@gudinoff>2022-11-14 02:47:58 +0000
committerdam <dam@gudinoff>2022-11-14 02:47:58 +0000
commit53fba2d3899c95b996fc6950ba0ffd608aaf7ad6 (patch)
treec646f0c59d9be6364a863d82ac6d732615b948a9
parent0ab05e1d379573a8e3b7f92a0ece9308faec2a42 (diff)
downloadtask-time-tracker-53fba2d3899c95b996fc6950ba0ffd608aaf7ad6.tar.zst
task-time-tracker-53fba2d3899c95b996fc6950ba0ffd608aaf7ad6.zip
Tweak help text.
-rw-r--r--main.c38
1 files changed, 18 insertions, 20 deletions
diff --git a/main.c b/main.c
index 106767d..3f78476 100644
--- a/main.c
+++ b/main.c
@@ -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;