X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fconvert.c;h=0114ea4fdfa98f037ff0a8794e43e5aa2ec21326;hb=b74b7faed500074055836296929fb9efa3ad7498;hp=e262b26c858b0ea0dda3da03a0549933be9d33fd;hpb=ae5d4e36af4f4a5567e1231958179d3a50eb4466;p=ypp-sc-tools.web-live.git diff --git a/pctb/convert.c b/pctb/convert.c index e262b26..0114ea4 100644 --- a/pctb/convert.c +++ b/pctb/convert.c @@ -77,6 +77,10 @@ static void run_analysis(void) { progress("running recognition..."); analyse(tf); + if (o_single_page && !strcmp(o_outputmode,"upload")) + fatal("Recognition successful, but refusing to upload partial data\n" + " (--single-page specified). Specify an output mode?"); + sysassert( fseek(tf,0,SEEK_SET) == 0); progress_log("processing results (--%s)...", o_outputmode); @@ -110,6 +114,8 @@ int main(int argc, char **argv) { else if (!strcmp(arg,"--analyse-only") || !strcmp(arg,"--same")) o_mode= mode_analyse; + else if (!strcmp(arg,"--everything")) + o_mode= mode_all; else if (!strcmp(arg,"--single-page")) o_single_page= 1; else if (!strcmp(arg,"--quiet"))