You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by bu...@apache.org on 2002/10/09 18:03:06 UTC

DO NOT REPLY [Bug 13462] New: - org.apache.avalon.excalibur.cli.CLArgsParser - duplicate options lost

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13462>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13462

org.apache.avalon.excalibur.cli.CLArgsParser - duplicate options lost

           Summary: org.apache.avalon.excalibur.cli.CLArgsParser - duplicate
                    options lost
           Product: Avalon
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Excalibur
        AssignedTo: avalon-dev@jakarta.apache.org
        ReportedBy: jamie@mccrindle.org


the CLArgsParser loses additional arguments specified against options marked as
ALLOW_DUPLICATES.

I suspect the reason is because the m_optionIndex uses a Hashtable to store
options, key'd on name or id which effectively gets rid of duplicates (and the
duplicate options are stored as duplicates in the vector, as opposed to adding
the duplicate arguments to a single option).

workaround is to use getArguments() which will return the vector that has the
duplicate values and get the duplicates out of there.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>