diff options
author | Philip Withnall <withnall@endlessm.com> | 2020-04-27 15:38:16 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2020-04-27 15:39:40 +0100 |
commit | 2afa121ad23bcfe994d3ea7fd9f08b4c79839b80 (patch) | |
tree | 9b7e0c8edd918beea552bfe35e4477a56cda3291 /src | |
parent | d2abdd1266ee795bc15551310e168689717da2b0 (diff) |
main: Don’t print translation header with `--help`
The correct way to tell `g_option_context_new()` not to print any
information after the options is to pass `NULL`. Passing the empty
string results in a call to `gettext ("")`, which returns the
translation’s header.
This fixes the output of `accounts-daemon --help`.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -217,7 +217,7 @@ main (int argc, char *argv[]) return EXIT_FAILURE; } - context = g_option_context_new (""); + context = g_option_context_new (NULL); g_option_context_set_translation_domain (context, GETTEXT_PACKAGE); g_option_context_set_summary (context, _("Provides D-Bus interfaces for querying and manipulating\nuser account information.")); g_option_context_add_main_entries (context, entries, NULL); |