File: search_options.c

package info (click to toggle)
swish%2B%2B 6.1.5-5
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 2,916 kB
  • ctags: 2,205
  • sloc: ansic: 11,936; lisp: 804; sh: 629; perl: 366; makefile: 80
file content (73 lines) | stat: -rw-r--r-- 2,004 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
**	SWISH++
**	search_options.c
**
**	Copyright (C) 1998  Paul J. Lucas
**
**	This program is free software; you can redistribute it and/or modify
**	it under the terms of the GNU General Public License as published by
**	the Free Software Foundation; either version 2 of the License, or
**	(at your option) any later version.
**
**	This program is distributed in the hope that it will be useful,
**	but WITHOUT ANY WARRANTY; without even the implied warranty of
**	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
**	GNU General Public License for more details.
**
**	You should have received a copy of the GNU General Public License
**	along with this program; if not, write to the Free Software
**	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

/*
**	Note that this file is #include'd into search.c and search_thread.c
**	because it generates different code depending on which one it's
**	compiled into.
*/

static option_stream::spec const opt_spec[] = {
	"help",			0, '?',
	"dump-words",		0, 'd',
	"dump-index",		0, 'D',
	"word-files",		1, 'f',
	"format",		1, 'F',
	"max-results",		1, 'm',
	"dump-meta",		0, 'M',
#ifdef	FEATURE_word_pos
	"near",			1, 'n',
#endif
	"word-percent",		1, 'p',
	"skip-results",		1, 'r',
	"separator",		1, 'R',
	"stem-words",		0, 's',
	"dump-stop",		0, 'S',
	"version",		0, 'V',
	"window",		1, 'w',
#ifndef	SEARCH_DAEMON_OPTIONS_ONLY
	//
	// Once running as a daemon, 'search' no longer accepts any of the
	// remaining options.
	//
	"config-file",		1, 'c',
	"index-file",		1, 'i',
#ifdef	SEARCH_DAEMON
	"daemon-type",		1, 'b',
#ifdef	__APPLE__
	"launchd",		0, 'X',
#endif
	"no-background",	0, 'B',
	"group",		1, 'G',
	"pid-file",		1, 'P',
	"socket-timeout",	1, 'o',
	"thread-timeout",	1, 'O',
	"queue-size",		1, 'q',
	"min-threads",		1, 't',
	"max-threads",		1, 'T',
	"socket-address",	1, 'a',
	"socket-file",		1, 'u',
	"user",			1, 'U',
#endif	/* SEARCH_DAEMON */
#endif	/* SEARCH_DAEMON_OPTIONS_ONLY */
	0
};
/* vim:set noet sw=8 ts=8: */