From ad466ee42d7e08fd7dd719758cfc9aceabc2bb5d Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 3 Mar 2020 09:00:56 +0100 Subject: [PATCH] missing nl in usage string --- src/query/recollq.cpp | 79 ++++++++++++++++++++++--------------------- 1 file changed, 40 insertions(+), 39 deletions(-) diff --git a/src/query/recollq.cpp b/src/query/recollq.cpp index 01e386db..0e5bbca2 100644 --- a/src/query/recollq.cpp +++ b/src/query/recollq.cpp @@ -93,45 +93,46 @@ void output_fields(vector fields, Rcl::Doc& doc, static char *thisprog; static char usage [] = - " -P: Show the date span for all the documents present in the index.\n" - " [-o|-a|-f] [-q] \n" - " Runs a recoll query and displays result lines. \n" - " Default: will interpret the argument(s) as a xesam query string.\n" - " Query elements: \n" - " * Implicit AND, exclusion, field spec: t1 -t2 title:t3\n" - " * OR has priority: t1 OR t2 t3 OR t4 means (t1 OR t2) AND (t3 OR t4)\n" - " * Phrase: \"t1 t2\" (needs additional quoting on cmd line)\n" - " -o Emulate the GUI simple search in ANY TERM mode.\n" - " -a Emulate the GUI simple search in ALL TERMS mode.\n" - " -f Emulate the GUI simple search in filename mode.\n" - " -q is just ignored (compatibility with the recoll GUI command line).\n" - "Common options:\n" - " -c : specify config directory, overriding $RECOLL_CONFDIR.\n" - " -C : collapse duplicates\n" - " -d also dump file contents.\n" - " -n [first-] define the result slice. The default value for [first]\n" - " is 0. Without the option, the default max count is 2000.\n" - " Use n=0 for no limit.\n" - " -b : basic. Just output urls, no mime types or titles.\n" - " -Q : no result lines, just the processed query and result count.\n" - " -m : dump the whole document meta[] array for each result.\n" - " -A : output the document abstracts.\n" - " -S fld : sort by field .\n" - " -D : sort descending.\n" - " -s stemlang : set stemming language to use (must exist in index...).\n" - " Use -s \"\" to turn off stem expansion.\n" - " -T : use the parameter (Thesaurus) for word expansion.\n" - " -i : additional index, several can be given.\n" - " -e use url encoding (%xx) for urls.\n" - " -E use exact result count instead of lower bound estimate" - " -F : output exactly these fields for each result.\n" - " The field values are encoded in base64, output in one line and \n" - " separated by one space character. This is the recommended format \n" - " for use by other programs. Use a normal query with option -m to \n" - " see the field names. Use -F '' to output all fields, but you probably\n" - " also want option -N in this case.\n" - " -N : with -F, print the (plain text) field names before the field values.\n" - ; +" -P: Show the date span for all the documents present in the index.\n" +" [-o|-a|-f] [-q] \n" +" Runs a recoll query and displays result lines. \n" +" Default: will interpret the argument(s) as a xesam query string.\n" +" Query elements: \n" +" * Implicit AND, exclusion, field spec: t1 -t2 title:t3\n" +" * OR has priority: t1 OR t2 t3 OR t4 means (t1 OR t2) AND (t3 OR t4)\n" +" * Phrase: \"t1 t2\" (needs additional quoting on cmd line)\n" +" -o Emulate the GUI simple search in ANY TERM mode.\n" +" -a Emulate the GUI simple search in ALL TERMS mode.\n" +" -f Emulate the GUI simple search in filename mode.\n" +" -q is just ignored (compatibility with the recoll GUI command line).\n" +"Common options:\n" +" -c : specify config directory, overriding $RECOLL_CONFDIR.\n" +" -C : collapse duplicates\n" +" -d also dump file contents.\n" +" -n [first-] define the result slice. The default value for [first]\n" +" is 0. Without the option, the default max count is 2000.\n" +" Use n=0 for no limit.\n" +" -b : basic. Just output urls, no mime types or titles.\n" +" -Q : no result lines, just the processed query and result count.\n" +" -m : dump the whole document meta[] array for each result.\n" +" -A : output the document abstracts.\n" +" -S fld : sort by field .\n" +" -D : sort descending.\n" +" -s stemlang : set stemming language to use (must exist in index...).\n" +" Use -s \"\" to turn off stem expansion.\n" +" -T : use the parameter (Thesaurus) for word expansion.\n" +" -i : additional index, several can be given.\n" +" -e use url encoding (%xx) for urls.\n" +" -E use exact result count instead of lower bound estimate.\n" +" -F : output exactly these fields for each result.\n" +" The field values are encoded in base64, output in one line and \n" +" separated by one space character. This is the recommended format \n" +" for use by other programs. Use a normal query with option -m to \n" +" see the field names. Use -F '' to output all fields, but you probably\n" +" also want option -N in this case.\n" +" -N : with -F, print the (plain text) field names before the field values.\n" +; + static void Usage(void) {