X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=blobdiff_plain;f=yarrg%2Fconvert.c;h=76a9a7af96ac18c97d0e941496ff2b495551d182;hp=adccb1cfdae6e52acf51fa6243600cc3fbaeb9f9;hb=315da411e1e9d4c92efac97c51cfc590ee6e4560;hpb=529cee5b3dbcb935efd0f0d78a60589201c01eb0 diff --git a/yarrg/convert.c b/yarrg/convert.c index adccb1c..76a9a7a 100644 --- a/yarrg/convert.c +++ b/yarrg/convert.c @@ -94,7 +94,7 @@ static void run_analysis(void) { analyse(tf); if (o_flags & ff_upload) { - if (npages<=1) + if (o_flags & ff_singlepage) fatal("Recognition successful, but refusing to upload partial data\n" " (--single-page specified). Specify an output mode?"); } @@ -262,6 +262,7 @@ int main(int argc, char **argv) { else if (IS("--dict-read-only")) o_flags &= (~ffs_dict | ff_dict_fetch); else if (IS("--dict-anon")) o_flags &= ~ff_dict_pirate; else if (IS("--dict-submit")) o_flags |= ff_dict_fetch|ff_dict_submit; + else if (IS("--dict-no-update")) o_flags &= ~ff_dict_fetch; // testing else if (IS("--raw-tsv")) outputmode(omk_raw,0); else if (IS("--upload")) outputmode_uploads(); else if (IS("--upload-yarrg")) outputmode(omk_upload_yarrg,arg+2);