Skip to content

Commit b5ac850

Browse files
committed
tesseractmain: EXIT_FAILURE if tesseract is called without arguments
When Tesseract is called without any argument, the help message is still printed, but the exit status no longer indicates success (EXIT_OK). Signed-off-by: Stefan Weil <[email protected]>
1 parent 6dba34d commit b5ac850

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/api/tesseractmain.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,6 @@ static void ParseArgs(const int argc, char** argv, const char** lang,
272272
GenericVector<STRING>* vars_values, int* arg_i,
273273
tesseract::PageSegMode* pagesegmode,
274274
tesseract::OcrEngineMode* enginemode) {
275-
if (argc == 1) {
276-
PrintHelpMessage(argv[0]);
277-
exit(0);
278-
}
279-
280275
if (argc == 2) {
281276
if ((strcmp(argv[1], "-h") == 0) || (strcmp(argv[1], "--help") == 0)) {
282277
PrintHelpMessage(argv[0]);

0 commit comments

Comments
 (0)