/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) 1995-2011 Index Data
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
char *query = 0;
char *fname = 0;
int reverse = 0;
+ int verbose = 1;
int ret;
char *arg;
- while ((ret = options("n:r", argv, argc, &arg)) != -2)
+ while ((ret = options("n:rv", argv, argc, &arg)) != -2)
{
switch (ret)
{
else
query = arg;
break;
+ case 'n':
+ iterations = atoi(arg);
+ break;
case 'r':
reverse = 1;
break;
- case 'n':
- iterations = atoi(arg);
+ case 'v':
+ verbose = 1;
break;
default:
usage();
if (query)
{
+ if (verbose)
+ printf("Parsing CQL %s\n", query);
for (i = 0; i<iterations; i++)
r = cql_parser_string(cp, query);
}