small usage string clarifications
This commit is contained in:
parent
1f9475121c
commit
0af800a66f
@ -195,9 +195,10 @@ static const char usage [] =
|
||||
" -o : the query will be interpreted as an OR query.\n"
|
||||
" -f : the query will be interpreted as a filename search\n"
|
||||
" -l : the query will be interpreted as a query language string (default)\n"
|
||||
" -t : terminal display: no gui. Results go to stdout. MUST be given\n"
|
||||
" explicitly as -t (not ie, -at), and -q <query> MUST\n"
|
||||
" be last on the command line if this is used.\n"
|
||||
" -t : terminal display: no gui. Results go to stdout. MUST be given\n"
|
||||
" explicitly as -t (not ie, -at), and -q <query> MUST\n"
|
||||
" be last on the command line if this is used.\n"
|
||||
" Use -t -h to see the additional non-gui options\n"
|
||||
;
|
||||
static void
|
||||
Usage(void)
|
||||
@ -209,6 +210,8 @@ Usage(void)
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
// If "-t" is present at all, we don't do the GUI thing and pass the
|
||||
// whole to recollq for command line / pipe usage.
|
||||
for (int i = 0; i < argc; i++) {
|
||||
if (!strcmp(argv[i], "-t")) {
|
||||
exit(recollq(&theconfig, argc, argv));
|
||||
|
||||
@ -79,26 +79,27 @@ void output_fields(const vector<string>fields, Rcl::Doc& doc,
|
||||
|
||||
static char *thisprog;
|
||||
static char usage [] =
|
||||
" -P: Show date span for documents in index\n"
|
||||
" [-o|-a|-f] <query string>\n"
|
||||
" -P: Show the date span for all the documents present in the index\n"
|
||||
" [-o|-a|-f] [-q] <query string>\n"
|
||||
" Runs a recoll query and displays result lines. \n"
|
||||
" Default: will interpret the argument(s) as a xesam query string\n"
|
||||
" query may be like: \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"
|
||||
" -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 <configdir> : specify config directory, overriding $RECOLL_CONFDIR\n"
|
||||
" -d also dump file contents\n"
|
||||
" -n <cnt> limit the maximum number of results (0->no limit, default 2000)\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\n"
|
||||
" -m : dump the whole document meta[] array for each result\n"
|
||||
" -A : output the document abstracts\n"
|
||||
" -S fld : sort by field name\n"
|
||||
" -S fld : sort by field <fld>\n"
|
||||
" -D : sort descending\n"
|
||||
" -i <dbdir> : additional index, several can be given\n"
|
||||
" -e use url encoding (%xx) for urls\n"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user