chore(tfm): remove -V option

This commit is contained in:
Masahiko AMANO 2023-02-22 08:32:10 +03:00
parent 9795b4dc2d
commit cb2de0658f
2 changed files with 1 additions and 6 deletions

View File

@ -27,7 +27,6 @@ Options:
-t <tanzaku_id or name> Tanzaku menu -t <tanzaku_id or name> Tanzaku menu
-c <sasa_id>-<tanzaku_id> Kazari menu (can only be used with the '-s' or '-u' option) -c <sasa_id>-<tanzaku_id> Kazari menu (can only be used with the '-s' or '-u' option)
-w Weed (defragment) database -w Weed (defragment) database
-V Print version and exit
No database connected No database connected
``` ```

View File

@ -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; char *abspath = NULL;
int opt; int opt;
_Bool opt_i = 0; _Bool opt_i = 0;
@ -437,7 +437,6 @@ int main(int argc, char **argv) {
HIGHLIGHT("-c <sasa_id>-<tanzaku_id>")" Kazari menu " HIGHLIGHT("-c <sasa_id>-<tanzaku_id>")" Kazari menu "
"(can only be used with the '-s' or '-u' option)\n" "(can only be used with the '-s' or '-u' option)\n"
HIGHLIGHT("-w")" Weed (defragment) database\n" HIGHLIGHT("-w")" Weed (defragment) database\n"
HIGHLIGHT("-V")" Print version and exit\n\n"
); );
if (tanabata_path != NULL) { if (tanabata_path != NULL) {
printf(HIGHLIGHT("Current database location: %s")"\n", tanabata_path); 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"); printf(HIGHLIGHT("No database connected")"\n");
} }
return 0; return 0;
case 'V':
printf("1.0.0\n");
return 0;
case 'I': case 'I':
abspath = realpath(optarg, abspath); abspath = realpath(optarg, abspath);
if (abspath == NULL) { if (abspath == NULL) {