Add option -nw control the wrapping of results in an <xml_result/> node.
[SXSI/xpathcomp.git] / src / options.ml
index 6dfaaef..4a7a0c7 100644 (file)
@@ -21,6 +21,7 @@ let do_perf = ref false
 let twopass = ref false
 let repeat = ref 1
 let docstats = ref false
+let no_wrap_results = ref false
 
 let set_index_type = function
   | "default" -> text_index_type := 0
@@ -84,6 +85,7 @@ let spec = Arg.align
 
     "-nc", Arg.Set(no_cache), " disable caching";
 
+    "-nw", Arg.Set(no_wrap_results), " do not wrap results in <xml_results/>";
 
     "-p",  Arg.Set(do_perf), " dump perf counters (Linux only)";