This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: STABLE3 - ccs_tool: Add an option to disable full XPathparsing


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=e49ca4ed3e8b8d916be29d5f83013507b032031c
Commit:        e49ca4ed3e8b8d916be29d5f83013507b032031c
Parent:        42cc800dde95d9376026c910b55280b7c305d85b
Author:        Christine Caulfield <ccaulfie@redhat.com>
AuthorDate:    Fri Feb 27 09:27:16 2009 +0000
Committer:     Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Fri Feb 27 09:28:06 2009 +0000

ccs_tool: Add an option to disable full XPath parsing

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
 config/tools/ccs_tool/ccs_tool.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/config/tools/ccs_tool/ccs_tool.c b/config/tools/ccs_tool/ccs_tool.c
index c05a07e..e7a1c48 100644
--- a/config/tools/ccs_tool/ccs_tool.c
+++ b/config/tools/ccs_tool/ccs_tool.c
@@ -176,13 +176,24 @@ static int xpath_query(int argc, char **argv)
 		fprintf(stderr,
 			"Usage:\n"
 			"\n"
-			"ccs_tool query <xpath query>\n");
+			"ccs_tool query [-n] <xpath query>\n"
+			"\n"
+		        "options\n"
+			"  -n     disable full XPath parsing\n");
 		return 1;
 	}
 
 	/* Tell the library we want full XPath parsing */
 	fullxpath = 1;
 
+	if (strcmp(argv[1], "-n") == 0) {
+		argv++;
+		argc--;
+
+		/* Actually ... no we don't */
+		fullxpath = 0;
+	}
+
 	handle = ccs_connect();
 
 	/* Process all the queries on the command-line */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]