diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-01-21 18:02:05 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-01-21 18:02:05 -0500 |
commit | 51c87f680991760940da65b0c182016350e211a6 (patch) | |
tree | bce34c90abbdb0429bd3323e53288ac2121657a8 /gio/gsettings-tool.c | |
parent | 0a5708654080232dd404d089b5b790de79f11032 (diff) | |
download | glib-51c87f680991760940da65b0c182016350e211a6.tar.gz |
Update help and docs for gsettings cmdline tool
The man page had gotten quite out of sync.
Diffstat (limited to 'gio/gsettings-tool.c')
-rw-r--r-- | gio/gsettings-tool.c | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/gio/gsettings-tool.c b/gio/gsettings-tool.c index de4378233..d96115912 100644 --- a/gio/gsettings-tool.c +++ b/gio/gsettings-tool.c @@ -453,6 +453,12 @@ gsettings_help (gboolean requested, if (command == NULL) ; + else if (strcmp (command, "help") == 0) + { + description = _("Print help"); + synopsis = "[COMMAND]"; + } + else if (strcmp (command, "list-schemas") == 0) { description = _("List the installed (non-relocatable) schemas"); @@ -467,13 +473,13 @@ gsettings_help (gboolean requested, else if (strcmp (command, "list-keys") == 0) { - description = _("Lists the keys in SCHEMA"); + description = _("List the keys in SCHEMA"); synopsis = N_("SCHEMA[:PATH]"); } else if (strcmp (command, "list-children") == 0) { - description = _("Lists the children of SCHEMA"); + description = _("List the children of SCHEMA"); synopsis = N_("SCHEMA[:PATH]"); } @@ -485,37 +491,37 @@ gsettings_help (gboolean requested, else if (strcmp (command, "get") == 0) { - description = _("Gets the value of KEY"); + description = _("Get the value of KEY"); synopsis = N_("SCHEMA[:PATH] KEY"); } else if (strcmp (command, "range") == 0) { - description = _("Queries the range of valid values for KEY"); + description = _("Query the range of valid values for KEY"); synopsis = N_("SCHEMA[:PATH] KEY"); } else if (strcmp (command, "set") == 0) { - description = _("Sets the value of KEY to VALUE"); + description = _("Set the value of KEY to VALUE"); synopsis = N_("SCHEMA[:PATH] KEY VALUE"); } else if (strcmp (command, "reset") == 0) { - description = _("Resets KEY to its default value"); + description = _("Reset KEY to its default value"); synopsis = N_("SCHEMA[:PATH] KEY"); } else if (strcmp (command, "writable") == 0) { - description = _("Checks if KEY is writable"); + description = _("Check if KEY is writable"); synopsis = N_("SCHEMA[:PATH] KEY"); } else if (strcmp (command, "monitor") == 0) { - description = _("Monitors KEY for changes.\n" + description = _("Monitor KEY for changes.\n" "If no KEY is specified, monitor all keys in SCHEMA.\n" "Use ^C to stop monitoring.\n"); synopsis = N_("SCHEMA[:PATH] [KEY]"); @@ -558,7 +564,11 @@ gsettings_help (gboolean requested, { g_string_append (string, _("Arguments:\n")); - if (strstr (synopsis, "SCHEMA")) + if (strstr (synopsis, "[COMMAND]")) + g_string_append (string, + _(" COMMAND The (optional) command to explain\n")); + + else if (strstr (synopsis, "SCHEMA")) g_string_append (string, _(" SCHEMA The name of the schema\n" " PATH The path, for relocatable schemas\n")); |