#296367 argp_*(): OPTION_DOC should imply OPTION_NO_USAGE

Package:
libc6
Source:
glibc
Description:
GNU C Library: Shared libraries
Submitter:
Henrique de Moraes Holschuh
Date:
2011-08-19 19:00:05 UTC
Severity:
normal
#296367#5
Date:
2005-02-22 00:56:11 UTC
From:
To:
argp options marked as OPTION_DOC are displayed (with the leading --, even)
on --usage output.  This does not make sense, these are not to be treated as
options by the parser, so they certainly should not be displayed by --usage,
let alone with the unexistent leading double-dashes.

This problem can be worked around by always using OPTION_DOC |
OPTION_NO_USAGE, but the correct behaviour would be for OPTION_DOC to imply
also OPTION_NO_USAGE.

#296367#12
Date:
2011-08-19 18:57:07 UTC
From:
To:
tags 296367 + patch
quit

It would be more flexible to just have the usage messages display
`OPTION_DOC' entries the same way that help messages do (e.g.,
without the `--' prefix).  `OPTION_NO_USAGE' still works to
prevent these options from displaying in the usage.

`OPTION_DOC' is useful to specify the format of complex options
that are not displayed properly by default.  Having them appear
in the usage message in these cases keeps things consistent.