diff options
| author | dam <dam@gudinoff> | 2022-12-13 01:03:34 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2022-12-13 01:03:34 +0000 |
| commit | bcaf99f8658d28ddb97f9017578ce892c5d43bfd (patch) | |
| tree | fe78570ab7c3b064343518c942ab2bc670eb517a | |
| parent | 65fbe4576d09dff30d2b0c6bc80b3166d82fb510 (diff) | |
| download | task-time-tracker-bcaf99f8658d28ddb97f9017578ce892c5d43bfd.tar.zst task-time-tracker-bcaf99f8658d28ddb97f9017578ce892c5d43bfd.zip | |
Fixed bug introduced on export_csv. Tweaked console output text.
| -rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -650,7 +650,7 @@ bool export_to_csv(const database_st *db, const char *path) { char name[TASK_NAME_BYTES]; for (size_t idx = 0; idx < db->count; idx++) { - task_st *task = db->tasks[idx]; + task_st *task = &db->tasks[idx]; memcpy(name, task->name, TASK_NAME_BYTES); replace_char(name, ',', ' '); fprintf(file, "%s,%" PRId64 ",%" PRId64 ",%" PRId64 ",%" PRId64 ",%" PRId64 ",%" PRId64 ",%" PRId64 "\n", @@ -1202,7 +1202,7 @@ int main(int argc, char *argv[]) { " -h, --help Display this help and exit.\n" " -v, --version Output version information and exit.\n" "\n" - "Commands\n" + "In app commands\n" " a, A Archive selected task (except if active).\n" " u, U Unarchive selected task.\n" " c, C Select currently active task.\n" @@ -1281,7 +1281,7 @@ int main(int argc, char *argv[]) { continue; } - fprintf(stdout, "Unkown option '%s'.\nUse '%s --help' for list of options.\n", argv[idx], argv[0]); + fprintf(stdout, "%s: invalid option '%s'.\nTry '%s --help' for more information.\n", argv[0], argv[idx], argv[0]); return EXIT_FAILURE; } |
