[tracker] tracker-sparql: Fix documentation and --help for --update option



commit 47f1b3f1a2ca557329045a4272481d99c3b95210
Author: Martyn Russell <martyn lanedo com>
Date:   Wed Sep 9 09:17:22 2009 +0100

    tracker-sparql: Fix documentation and --help for --update option

 docs/manpages/tracker-sparql.1     |    8 ++++++--
 src/tracker-utils/tracker-sparql.c |    4 ++--
 2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/docs/manpages/tracker-sparql.1 b/docs/manpages/tracker-sparql.1
index d9c501a..9b304a4 100644
--- a/docs/manpages/tracker-sparql.1
+++ b/docs/manpages/tracker-sparql.1
@@ -27,8 +27,12 @@ Use a file with SPARQL content to query.
 .B \-q, \-\-query=SPARQL
 Use a SPARQL string to query the database with.
 .TP
-.B \-u, \-\-update=SPARQL
-Use a SPARQL string to update the database with.
+.B \-u, \-\-update
+This has to be used with \-\-query. This tells
+.B tracker-sparql
+to use the SPARQL update extensions so it knows it isn't a regular
+data lookup request. So if your query is intended to change data in
+the database, this option is needed. 
 .TP
 .B \-c, \-\-list-classes
 Returns a list of classes which describe the ontology used for storing
diff --git a/src/tracker-utils/tracker-sparql.c b/src/tracker-utils/tracker-sparql.c
index bbb8a59..a1085df 100644
--- a/src/tracker-utils/tracker-sparql.c
+++ b/src/tracker-utils/tracker-sparql.c
@@ -49,8 +49,8 @@ static GOptionEntry   entries[] = {
 	  N_("SPARQL"),
 	},
 	{ "update", 'u', 0, G_OPTION_ARG_NONE, &update,
-	  N_("SPARQL update extensions"),
-	  N_("SPARQL"),
+	  N_("This is used with --query and for database updates only."),
+	  NULL,
 	},
 	{ "list-classes", 'c', 0, G_OPTION_ARG_NONE, &list_classes,
 	  N_("Retrieve classes"),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]