Codebase list virt-viewer / de3e27b
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. Jonathon Jongsma 9 years ago
2 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
110110 virt_viewer_util_init(_("Remote Viewer"));
111111
112112 /* Setup command line options */
113 context = g_option_context_new (_("- Remote viewer client"));
113 context = g_option_context_new (NULL);
114 g_option_context_set_summary(context, _("Remote viewer client"));
114115 g_option_context_add_main_entries (context, virt_viewer_app_get_options(), NULL);
115116 g_option_context_add_main_entries (context, options, NULL);
116117 g_option_context_add_group (context, gtk_get_option_group (TRUE));
8080 g_free(base_name);
8181
8282 /* Setup command line options */
83 context = g_option_context_new (_("- Virtual machine graphical console"));
83 context = g_option_context_new (NULL);
84 g_option_context_set_summary (context, _("Virtual machine graphical console"));
8485 g_option_context_add_main_entries (context, options, NULL);
8586 g_option_context_add_main_entries (context, virt_viewer_app_get_options(), NULL);
8687 g_option_context_add_group (context, gtk_get_option_group (TRUE));