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
110 | 110 |
virt_viewer_util_init(_("Remote Viewer"));
|
111 | 111 |
|
112 | 112 |
/* 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"));
|
114 | 115 |
g_option_context_add_main_entries (context, virt_viewer_app_get_options(), NULL);
|
115 | 116 |
g_option_context_add_main_entries (context, options, NULL);
|
116 | 117 |
g_option_context_add_group (context, gtk_get_option_group (TRUE));
|
80 | 80 |
g_free(base_name);
|
81 | 81 |
|
82 | 82 |
/* 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"));
|
84 | 85 |
g_option_context_add_main_entries (context, options, NULL);
|
85 | 86 |
g_option_context_add_main_entries (context, virt_viewer_app_get_options(), NULL);
|
86 | 87 |
g_option_context_add_group (context, gtk_get_option_group (TRUE));
|