From de3e27b3336bde25019ab50a54796b8b1926c6d9 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Tue, 1 Jul 2014 15:12:15 -0500 Subject: Set help output summary correctly Use g_option_context_set_summary() to provide a brief description of the executable instead of tacking the summary onto the end of the commandline. --- src/remote-viewer-main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/remote-viewer-main.c') diff --git a/src/remote-viewer-main.c b/src/remote-viewer-main.c index a84a732..e65cfd9 100644 --- a/src/remote-viewer-main.c +++ b/src/remote-viewer-main.c @@ -111,7 +111,8 @@ main(int argc, char **argv) virt_viewer_util_init(_("Remote Viewer")); /* Setup command line options */ - context = g_option_context_new (_("- Remote viewer client")); + context = g_option_context_new (NULL); + g_option_context_set_summary(context, _("Remote viewer client")); g_option_context_add_main_entries (context, virt_viewer_app_get_options(), NULL); g_option_context_add_main_entries (context, options, NULL); g_option_context_add_group (context, gtk_get_option_group (TRUE)); -- cgit