[gnome-terminal] client: legacy: Add -- to usage line
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] client: legacy: Add -- to usage line
- Date: Wed, 16 Nov 2016 21:40:23 +0000 (UTC)
commit f87875b3bcae2b081944de8d8fd3a9bb2ad2d85d
Author: Christian Persch <chpe gnome org>
Date: Wed Nov 16 22:40:16 2016 +0100
client: legacy: Add -- to usage line
https://bugzilla.gnome.org/show_bug.cgi?id=774595
src/terminal-options.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-options.c b/src/terminal-options.c
index afec6aa..4942759 100644
--- a/src/terminal-options.c
+++ b/src/terminal-options.c
@@ -33,6 +33,7 @@
#include "terminal-app.h"
#include "terminal-util.h"
#include "terminal-version.h"
+#include "terminal-libgsystem.h"
static GOptionContext *get_goption_context (TerminalOptions *options);
@@ -1320,8 +1321,10 @@ get_goption_context (TerminalOptions *options)
GOptionContext *context;
GOptionGroup *group;
+ gs_free char *parameter;
- context = g_option_context_new (NULL);
+ parameter = g_strdup_printf ("[-- %s …]", _("COMMAND"));
+ context = g_option_context_new (parameter);
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
g_option_context_set_description (context, N_("GNOME Terminal Emulator"));
g_option_context_set_ignore_unknown_options (context, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]