From e9825058f1499f656335b3215cc3c79bf0ef4715 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 8 Jun 2009 00:13:25 +0100 Subject: [PATCH] document the options --- pctb/README | 24 +++++++++++++++++++++++- pctb/convert.c | 2 ++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/pctb/README b/pctb/README index 938f0de..5f1cea2 100644 --- a/pctb/README +++ b/pctb/README @@ -4,7 +4,7 @@ This tool can: - **TODO** upload the results to PCTB To run it, change to this directory, type `make', and then: - ./ypp-commodities >commods.csv + ./ypp-commodities --tsv >commods.tsv It may put up a window asking about characters it does not understand. It is important to get these inputs right or it may misrecognise @@ -16,3 +16,25 @@ error message and circumstances. Also, for recognition problems there will probably be a very useful screenshot file called `#pages#.pnm'. This is likely to be very large so don't just email it to me, but if you can put it up on a webpage for me to download that will help. + +Options available: + + Setting the operation mode: + --find-window-only Just check that we can find the YPP client window. + --screenshot-only Page through and take screenshots, do not OCR + --analyse-only | --same Process previously taken screenshots + --everything (default) Take screenshots and process them + + Options to vary the processing: + --single-page One screenful, no paging - results will be incomplete + --quiet Suppress progress messages + --screenshot-file F Store or read screenshots in F rather than #pages#.pnm + --window-id ID Specified X window is the YPP client - do not search + + Setting the output processing: + --raw-tsv Dump the raw not deduped unsorted OCR'd data + --upload (default) Upload to the PCTB server + --tsv Print data as clean tab-separated-values file + --best-prices Print best buy and sell price for each commodity + --arbitrage Print arbitrage opportunityes + diff --git a/pctb/convert.c b/pctb/convert.c index e262b26..eb7536d 100644 --- a/pctb/convert.c +++ b/pctb/convert.c @@ -110,6 +110,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")) -- 2.30.2