diff options
author | Colin Watson <cjwatson@debian.org> | 2018-04-05 12:16:16 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2018-04-05 12:22:14 +0100 |
commit | e02083cbb4b802ee8bc4444b906bd91d90461e48 (patch) | |
tree | 497a77ad35537da1bba1fc9d2f7aca06c50998d8 /gnulib | |
parent | 224f8ec2a7e0bf2efc096b517f5d49cc39b38c81 (diff) |
Suppress spurious gettext headers in --help output
Some of man-db's commands have post-options help text but no pre-options
help text. Unfortunately, the way this works in argp (separating the
two sections using a '\v' character) means that this results in argp
trying to translate the empty string, which produces gettext catalog
headers. The easiest way to suppress this odd behaviour seems to be to
use a help filter function, so do that.
Reported by Rafael Fontenelle.
* src/accessdb.c (help_filter): Return NULL for ARGP_KEY_HELP_PRE_DOC.
* src/lexgrog_text.c (help_filter): New function.
(argp): Add help_filter.
* src/whatis.c (help_filter): New function.
(apropos_argp): Add help_filter.
* NEWS: Document this.
Diffstat (limited to 'gnulib')
0 files changed, 0 insertions, 0 deletions