diff options
author | Muktha <muktha.narayan@wipro.com> | 2003-08-18 12:26:07 +0000 |
---|---|---|
committer | Muktha Narayan <muktha@src.gnome.org> | 2003-08-18 12:26:07 +0000 |
commit | 9ea5f5ecbc818b5c95e8b0592e1eb0e6bb1c7246 (patch) | |
tree | c829d9cf7a9ad7ef9a8230abce1c7e62ccab46f2 | |
parent | 2d6a67b034b72bbdb513a9c25ba934fe61222179 (diff) | |
download | gconf-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | gconf/gconftool.c | 6 |
2 files changed, 11 insertions, 0 deletions
@@ -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*/; |