[Spice-devel] [PATCH] Remove incorrect option context from spicy-stats

Jonathon Jongsma jjongsma at redhat.com
Mon Aug 26 13:38:09 PDT 2013


The argument given to g_option_context_new() was apparently copy/pasted from
spicy-screenshot and therefore inaccurate for spicy-stats.  Since the actual
description of the program (from _set_summary()) is displayed on the next line
anyway, simply make the context NULL.
---
 gtk/spicy-stats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtk/spicy-stats.c b/gtk/spicy-stats.c
index 331e5e2..f176ead 100644
--- a/gtk/spicy-stats.c
+++ b/gtk/spicy-stats.c
@@ -95,7 +95,7 @@ int main(int argc, char *argv[])
     textdomain(GETTEXT_PACKAGE);
 
     /* parse opts */
-    context = g_option_context_new(_(" - make screen shots"));
+    context = g_option_context_new(NULL);
     g_option_context_set_summary(context, _("A Spice client used for testing and measurements."));
     g_option_context_set_description(context, _("Report bugs to " PACKAGE_BUGREPORT "."));
     g_option_context_set_main_group(context, spice_cmdline_get_option_group());
-- 
1.8.3.1



More information about the Spice-devel mailing list