From 3939b30c151d25e38962d9fb32f2fe9d8770c073 Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Fri, 30 Dec 2022 16:46:27 +0300 Subject: [PATCH] fix(cli): correct output messages in the update menu --- cli/cli.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/cli.c b/cli/cli.c index cd61996..f5064e4 100644 --- a/cli/cli.c +++ b/cli/cli.c @@ -305,7 +305,7 @@ int menu_upd_sasa(const char *arg) { uint64_t sasa_id = strtoull(arg, &endptr, 16); if (*endptr == 0) { char *path = malloc(4096); - printf(HIGHLIGHT("Enter the new file path (leave empty to keep current)\n")); + printf(HIGHLIGHT("Enter the new file path (leave blank to keep current)\n")); fgets(path, 4096, stdin); if (*path == '\n') { free(path); @@ -334,7 +334,7 @@ int menu_upd_tanzaku(const char *arg) { uint64_t tanzaku_id = strtoull(arg, &endptr, 16); if (*endptr == 0) { char *name = malloc(4096), *description = malloc(4096); - printf(HIGHLIGHT("Enter the new name of tanzaku (leave empty to keep current)\n")); + printf(HIGHLIGHT("Enter the new name of tanzaku (leave blank to keep current)\n")); fgets(name, 4096, stdin); if (*name == '\n') { free(name); @@ -342,7 +342,7 @@ int menu_upd_tanzaku(const char *arg) { } else { name[strlen(name) - 1] = 0; } - printf(HIGHLIGHT("Enter the new description of tanzaku (leave empty to keep current)\n")); + printf(HIGHLIGHT("Enter the new description of tanzaku (leave blank to keep current)\n")); fgets(description, 4096, stdin); if (*description == '\n') { free(description); @@ -352,10 +352,10 @@ int menu_upd_tanzaku(const char *arg) { } if (tanabata_tanzaku_upd(&tanabata, tanzaku_id, name, description) == 0 && tanabata_save(&tanabata) == 0) { - printf(SUCCESS("Successfully updated sasa\n")); + printf(SUCCESS("Successfully updated tanzaku\n")); return 0; } - fprintf(stderr, ERROR("Failed to update sasa\n")); + fprintf(stderr, ERROR("Failed to update tanzaku\n")); return 1; } fprintf(stderr, ERROR("Invalid ID\n"));