summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuktha <muktha.narayan@wipro.com>2003-08-18 12:26:07 +0000
committerMuktha Narayan <muktha@src.gnome.org>2003-08-18 12:26:07 +0000
commit9ea5f5ecbc818b5c95e8b0592e1eb0e6bb1c7246 (patch)
treec829d9cf7a9ad7ef9a8230abce1c7e62ccab46f2
parent2d6a67b034b72bbdb513a9c25ba934fe61222179 (diff)
downloadgconf-9ea5f5ecbc818b5c95e8b0592e1eb0e6bb1c7246.tar.gz
Print usage message when no options are passed to gconftool-2. Fixes
2003-08-18 Muktha <muktha.narayan@wipro.com> * gconf/gconftool.c (main) : Print usage message when no options are passed to gconftool-2. Fixes #70316.
-rw-r--r--ChangeLog5
-rw-r--r--gconf/gconftool.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6e8a7fbd..4c6c4093 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-18 Muktha <muktha.narayan@wipro.com>
+
+ * gconf/gconftool.c (main) : Print usage message when no options are
+ passed to gconftool-2. Fixes #70316.
+
2003-08-11 Christophe Fergeau <teuf@gnome.org>
* doc/gconf/tmpl/gconf-client.sgml:
diff --git a/gconf/gconftool.c b/gconf/gconftool.c
index 4374d711..4d2fcee5 100644
--- a/gconf/gconftool.c
+++ b/gconf/gconftool.c
@@ -489,6 +489,12 @@ main (int argc, char** argv)
poptReadDefaultConfig(ctx, TRUE);
+ if (argc < 2)
+ {
+ poptPrintUsage (ctx, stdout, 0);
+ return 1;
+ }
+
while((nextopt = poptGetNextOpt(ctx)) > 0)
/*nothing*/;