avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13462] New: - org.apache.avalon.excalibur.cli.CLArgsParser - duplicate options lost
Date Wed, 09 Oct 2002 16:03:06 GMT
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:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message