-/* $Id: pazpar2.c,v 1.5 2006-12-22 04:43:11 quinn Exp $ */;
+/* $Id: pazpar2.c,v 1.6 2006-12-27 21:11:10 quinn Exp $ */;
#include <stdlib.h>
#include <stdio.h>
#include "termlists.h"
#include "reclists.h"
#include "relevance.h"
+#include "config.h"
#define PAZPAR2_VERSION "0.1"
#define MAX_CHUNK 15
yaz_log_init(YLOG_DEFAULT_LEVEL, "pazpar2", 0);
- while ((ret = options("x:c:h:p:C:s:", argv, argc, &arg)) != -2)
+ while ((ret = options("f:x:c:h:p:C:s:", argv, argc, &arg)) != -2)
{
switch (ret) {
+ case 'f':
+ if (!read_config(arg))
+ exit(1);
+ break;
case 'c':
command_init(atoi(arg));
setport++;
break;
default:
fprintf(stderr, "Usage: pazpar2\n"
+ " -f configfile\n"
" -h [host:]port (REST protocol listener)\n"
" -c cmdport (telnet-style)\n"
" -C cclconfig\n"