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
Merge request reports
Activity
╎❯ /usr/libexec/accounts-daemon --help Usage: accounts-daemon [OPTION…] Project-Id-Version: accounts service Report-Msgid-Bugs-To: PO-Revision-Date: 2019-02-22 14:19+0000 Last-Translator: halfline <halfline@gmail.com> Language-Team: English (http://www.transifex.com/freedesktop/accountsservice/language/en/) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Language: en Plural-Forms: nplurals=2; plural=(n != 1); ...
EEK!
Also fixed in GLib as: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1469