This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/20359] New: Hidden options are exposed with argp's ambiguous error message
- From: "bharathkumarkm at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 12 Jul 2016 10:48:05 +0000
- Subject: [Bug libc/20359] New: Hidden options are exposed with argp's ambiguous error message
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=20359
Bug ID: 20359
Summary: Hidden options are exposed with argp's ambiguous error
message
Product: glibc
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: bharathkumarkm at gmail dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
argp(part of C library) provides an flag OPTION_HIDDEN to hide an option. But
this hides the option only from command help message. User can know about it as
follows.
If user enters an partially matching text for hidden long option and which is
ambiguous to other option. argp prints below message which will expose the
hidden option. They should not be displayed in any help/error messages.
Ex: Let say an command named 'samplecli' has two options '--OPT1' & '--OPT2'
and '--OPT1' is marked hidden. it is not visible on samplecli
-h|--usage|--help|-?' as expected. But when user types something like
'samplecli --OPT', argp outputs:
# samplecli --OPT
samplecli: option '--OPT' is ambiguous; possibilities: '--OPT1' '--OPT2'
Try 'samplecli --help' or 'samplecli --usage' for more information.
--
You are receiving this mail because:
You are on the CC list for the bug.