[gnome-disk-utility] Add names for option arguments in --help output



commit 2849b510211fe95722af8af5cf5975e49f904087
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Nov 25 21:14:39 2015 -0500

    Add names for option arguments in --help output
    
    This is expected when using GOption.

 src/disks/gduapplication.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/disks/gduapplication.c b/src/disks/gduapplication.c
index 60da74c..5759ed4 100644
--- a/src/disks/gduapplication.c
+++ b/src/disks/gduapplication.c
@@ -140,10 +140,10 @@ gdu_application_object_from_block_device (GduApplication *app,
 /* ---------------------------------------------------------------------------------------------------- */
 
 static GOptionEntry opt_entries[] = {
-    {"block-device", 0, 0, G_OPTION_ARG_STRING, NULL, N_("Select device"), NULL },
+    {"block-device", 0, 0, G_OPTION_ARG_STRING, NULL, N_("Select device"), "DEVICE" },
     {"format-device", 0, 0, G_OPTION_ARG_NONE, NULL, N_("Format selected device"), NULL },
-    {"xid", 0, 0, G_OPTION_ARG_INT, NULL, N_("Parent window XID for the format dialog"), NULL },
-    {"restore-disk-image", 0, 0, G_OPTION_ARG_FILENAME, NULL, N_("Restore disk image"), NULL },
+    {"xid", 0, 0, G_OPTION_ARG_INT, NULL, N_("Parent window XID for the format dialog"), "ID" },
+    {"restore-disk-image", 0, 0, G_OPTION_ARG_FILENAME, NULL, N_("Restore disk image"), "FILE" },
     {NULL}
 };
 


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