[dconf/wip/varlib: 2/12] dconf(1): some whitespace changes
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf/wip/varlib: 2/12] dconf(1): some whitespace changes
- Date: Fri, 6 Dec 2013 20:34:01 +0000 (UTC)
commit 9653457f10929e298fa22c0d9c2850d9d56397ca
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Nov 28 14:12:51 2013 -0500
dconf(1): some whitespace changes
Add some more padding to 'dconf help' output to accomodate coming
additions.
https://bugzilla.gnome.org/show_bug.cgi?id=672303
bin/dconf.vala | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/bin/dconf.vala b/bin/dconf.vala
index f07bce3..ea05f77 100644
--- a/bin/dconf.vala
+++ b/bin/dconf.vala
@@ -31,27 +31,27 @@ void show_help (bool requested, string? command) {
case "help":
description = "Print help";
- synopsis = "COMMAND";
+ synopsis = " COMMAND ";
break;
case "read":
description = "Read the value of a key";
- synopsis = "KEY";
+ synopsis = " KEY ";
break;
case "list":
description = "List the sub-keys and sub-dirs of a dir";
- synopsis = "DIR";
+ synopsis = " DIR ";
break;
case "write":
description = "Write a new value to a key";
- synopsis = "KEY VALUE";
+ synopsis = " KEY VALUE ";
break;
case "reset":
description = "Reset a key or dir. -f is required for dirs.";
- synopsis = "[-f] PATH";
+ synopsis = " [-f] PATH ";
break;
case "update":
@@ -101,30 +101,30 @@ Use 'dconf help COMMAND' to get detailed help.
""");
} else {
str.append ("Usage:\n");
- str.append_printf (" dconf %s %s\n\n", command, synopsis);
+ str.append_printf (" dconf %s%s\n\n", command, synopsis);
str.append_printf ("%s\n\n", description);
if (synopsis != "") {
str.append ("Arguments:\n");
- if ("COMMAND" in synopsis) {
- str.append (" COMMAND The (optional) command to explain\n");
+ if (" COMMAND " in synopsis) {
+ str.append (" COMMAND The (optional) command to explain\n");
}
- if ("PATH" in synopsis) {
- str.append (" PATH Either a KEY or DIR\n");
+ if (" PATH " in synopsis) {
+ str.append (" PATH Either a KEY or DIR\n");
}
- if ("PATH" in synopsis || "KEY" in synopsis) {
- str.append (" KEY A key path (starting, but not ending with '/')\n");
+ if (" PATH " in synopsis || " KEY " in synopsis) {
+ str.append (" KEY A key path (starting, but not ending with '/')\n");
}
- if ("PATH" in synopsis || "DIR" in synopsis) {
- str.append (" DIR A directory path (starting and ending with '/')\n");
+ if (" PATH " in synopsis || " DIR " in synopsis) {
+ str.append (" DIR A directory path (starting and ending with
'/')\n");
}
- if ("VALUE" in synopsis) {
- str.append (" VALUE The value to write (in GVariant format)\n");
+ if (" VALUE " in synopsis) {
+ str.append (" VALUE The value to write (in GVariant format)\n");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]