From 62b2e12b72f698b532f9aa60b8516351cea5de23 Mon Sep 17 00:00:00 2001 From: "zdenop@gmail.com" Date: Thu, 2 May 2013 17:06:14 +0000 Subject: [PATCH] replace option -o with -c git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@841 d0cd1f9f-072b-0410-8dd7-cf729c803f20 --- api/tesseractmain.cpp | 10 +++++----- doc/tesseract.1 | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/api/tesseractmain.cpp b/api/tesseractmain.cpp index 1f81422b5..ce6d977fe 100644 --- a/api/tesseractmain.cpp +++ b/api/tesseractmain.cpp @@ -90,7 +90,7 @@ int main(int argc, char **argv) { } else if (strcmp(argv[arg], "--print-parameters") == 0) { noocr = true; print_parameters = true; - } else if (strcmp(argv[arg], "-o") == 0 && arg + 1 < argc) { + } else if (strcmp(argv[arg], "-c") == 0 && arg + 1 < argc) { // handled properly after api init ++arg; } else if (image == NULL) { @@ -108,7 +108,7 @@ int main(int argc, char **argv) { if (output == NULL && noocr == false) { fprintf(stderr, _("Usage:%s imagename outputbase|stdout [-l lang] " - "[-psm pagesegmode] [-o configvar=value] " + "[-psm pagesegmode] [-c configvar=value] " "[configfile...]\n\n"), argv[0]); fprintf(stderr, _("pagesegmode values are:\n" @@ -123,8 +123,8 @@ int main(int argc, char **argv) { "8 = Treat the image as a single word.\n" "9 = Treat the image as a single word in a circle.\n" "10 = Treat the image as a single character.\n")); - fprintf(stderr, _("multiple -o arguments are allowed.\n")); - fprintf(stderr, _("-l lang, -psm pagesegmode and any -o options must occur" + fprintf(stderr, _("multiple -c arguments are allowed.\n")); + fprintf(stderr, _("-l lang, -psm pagesegmode and any -c options must occur" "before any configfile.\n\n")); fprintf(stderr, _("Single options:\n")); fprintf(stderr, _(" -v --version: version info\n")); @@ -150,7 +150,7 @@ int main(int argc, char **argv) { char opt1[255], opt2[255]; for (arg = 0; arg < argc; arg++) { - if (strcmp(argv[arg], "-o") == 0 && arg + 1 < argc) { + if (strcmp(argv[arg], "-c") == 0 && arg + 1 < argc) { strncpy(opt1, argv[arg + 1], 255); *(strchr(opt1, '=')) = 0; strncpy(opt2, strchr(argv[arg + 1], '=') + 1, 255); diff --git a/doc/tesseract.1 b/doc/tesseract.1 index 6e58a6aa4..2e192282e 100644 --- a/doc/tesseract.1 +++ b/doc/tesseract.1 @@ -31,7 +31,7 @@ tesseract \- command\-line OCR engine .SH "SYNOPSIS" .sp -\fBtesseract\fR \fIimagename\fR \fIoutbase\fR|\fIstdout\fR [\fI\-l lang\fR] [\fI\-psm N\fR] [\gI\-o configvar=value\fR] [\fIconfigfile\fR \&...] +\fBtesseract\fR \fIimagename\fR \fIoutbase\fR|\fIstdout\fR [\fI\-l lang\fR] [\fI\-psm N\fR] [\gI\-c configvar=value\fR] [\fIconfigfile\fR \&...] .SH "DESCRIPTION" .sp tesseract(1) is a commercial quality OCR engine originally developed at HP between 1985 and 1995\&. In 1995, this engine was among the top 3 evaluated by UNLV\&. It was open\-sourced by HP and UNLV in 2005, and has been developed at Google since then\&. @@ -80,9 +80,9 @@ are: .\} .RE .PP -\fI\-o configvar=value\fR +\fI\-c configvar=value\fR .RS 4 -Sets a configuration variable\&. Multiple options can be set by using -o multiple times, once for each option\&. +Sets a configuration variable\&. Multiple options can be set by using -c multiple times, once for each option\&. .RE .PP \fI\-v\fR @@ -107,7 +107,7 @@ hocr \- Output in hOCR format instead of as a text file\&. .RE .RE .sp -\fBNota Bene:\fR The options \fI\-l lang\fR, \fI\-psm N\fR and \fI\-o configvar=value\fR must occur before any \fIconfigfile\fR\&. +\fBNota Bene:\fR The options \fI\-l lang\fR, \fI\-psm N\fR and \fI\-c configvar=value\fR must occur before any \fIconfigfile\fR\&. .SH "LANGUAGES" .sp There are currently language packs available for the following languages: