OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-link-grammar commits / bc3ab79

command-line.c: Correctly use D_USER_FILES
The printouts for verbosity level D_USER_FILES are to be done exactly at this verbosity.
bc3ab7929328eeb2fc3004d447e7e11252915233
by ampli <amirpli@gmail.com> · 2024-05-28T22:51:50.000Z

Changed files (1) +2 -2

link-parser/command-line.c +2 -2
……@@ -428,7 +428,7 @@ static FILE *open_help_file(int verbosity)
428428 help_file = linkgrammar_open_data_file(help_filename);
429429 }
430430
431 if ((NULL == help_file) && (verbosity > D_USER_FILES))
431 if ((NULL == help_file) && (verbosity == D_USER_FILES))
432432 {
433433 prt_error("Error: Cannot open help file '%s': %s\n",
434434 help_filename, strerror(errno));
……@@ -531,7 +531,7 @@ static void display_help(const Switch *sp, Command_Options *copts)
531531
532532 if (feof(hf))
533533 {
534 if (local.verbosity >= D_USER_FILES)
534 if (local.verbosity == D_USER_FILES)
535535 prt_error("Error: Cannot find command \"%s\" in help file\n",
536536 sp->string);
537537 }