}
}
- g_string_append_printf (string, "%s\n %s %s",
- _("Usage:"), g_get_prgname(), _("[OPTION...]"));
+ g_string_append_printf (string, "%s\n %s", _("Usage:"), g_get_prgname());
+ if (context->help_enabled ||
+ context->main_group->n_entries > 0 ||
+ context->groups != NULL)
+ g_string_append_printf (string, " %s", _("[OPTION...]"));
if (rest_description)
{
{
list = context->groups;
- g_string_append (string, _("Application Options:"));
+ if (context->help_enabled || list)
+ g_string_append (string, _("Application Options:"));
+ else
+ g_string_append (string, _("Options:"));
g_string_append (string, "\n");
if (context->main_group)
for (i = 0; i < context->main_group->n_entries; i++)