From cb2de0658fef047881cd8937b33508c905dd9df3 Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Wed, 22 Feb 2023 08:32:10 +0300 Subject: [PATCH] chore(tfm): remove -V option --- docs/fm.md | 1 - tfm/cli/tfm-cli.c | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/fm.md b/docs/fm.md index 5042948..e38b68b 100644 --- a/docs/fm.md +++ b/docs/fm.md @@ -27,7 +27,6 @@ Options: -t Tanzaku menu -c - Kazari menu (can only be used with the '-s' or '-u' option) -w Weed (defragment) database --V Print version and exit No database connected ``` diff --git a/tfm/cli/tfm-cli.c b/tfm/cli/tfm-cli.c index 81e7cde..519162a 100644 --- a/tfm/cli/tfm-cli.c +++ b/tfm/cli/tfm-cli.c @@ -402,7 +402,7 @@ int main(int argc, char **argv) { } } } - const char *shortopts = "hI:O:isuef:t:c:wV"; + const char *shortopts = "hI:O:isuef:t:c:w"; char *abspath = NULL; int opt; _Bool opt_i = 0; @@ -437,7 +437,6 @@ int main(int argc, char **argv) { HIGHLIGHT("-c -")" Kazari menu " "(can only be used with the '-s' or '-u' option)\n" HIGHLIGHT("-w")" Weed (defragment) database\n" - HIGHLIGHT("-V")" Print version and exit\n\n" ); if (tanabata_path != NULL) { printf(HIGHLIGHT("Current database location: %s")"\n", tanabata_path); @@ -445,9 +444,6 @@ int main(int argc, char **argv) { printf(HIGHLIGHT("No database connected")"\n"); } return 0; - case 'V': - printf("1.0.0\n"); - return 0; case 'I': abspath = realpath(optarg, abspath); if (abspath == NULL) {