diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2014-07-01 15:12:15 -0500 |
---|---|---|
committer | Jonathon Jongsma <jjongsma@redhat.com> | 2014-07-01 15:14:38 -0500 |
commit | de3e27b3336bde25019ab50a54796b8b1926c6d9 (patch) | |
tree | 2df6f6a7e07cd02b48fa4966e62508918fcd763d /src/remote-viewer-main.c | |
parent | 657d490e93764274a140794742dae96060e7d944 (diff) | |
download | virt-viewer-de3e27b3336bde25019ab50a54796b8b1926c6d9.tar.gz virt-viewer-de3e27b3336bde25019ab50a54796b8b1926c6d9.tar.xz virt-viewer-de3e27b3336bde25019ab50a54796b8b1926c6d9.zip |
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.
Diffstat (limited to 'src/remote-viewer-main.c')
-rw-r--r-- | src/remote-viewer-main.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)); |