This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/20359] New: Hidden options are exposed with argp's ambiguous error message


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]