commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28005] New: - Infinite Loop in Command-Line processing
Date Sun, 28 Mar 2004 18:56:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28005>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28005

Infinite Loop in Command-Line processing

           Summary: Infinite Loop in Command-Line processing
           Product: Commons
           Version: 2.0 Alpha 1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: CLI
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: cocoa@gmx.ch


In some cases, CLI-2 hangs in an infinite loop. I've created the following Group:

-- snip --
Option inputFormatOption = optionBuilder.withLongName("input-format")
        .create();
Argument argument = argumentBuilder.withName("file")
        .create();
Group children = groupBuilder.withName("options")
        .withOption(inputFormatOption)
        .create();
Command command = commandBuilder.withName("convert")
        .withChildren(children)
        .withArgument(argument)
        .create();
Group root = groupBuilder.withName("commands")
        .withOption(createConvertCommand())
        .create();
-- snip --

When I use the group:
--snip--
Parser parser = new Parser();
parser.setGroup(root);
parser.parse(args);
-- snip

and use the following command line:
convert test.txt --input-format a

the parser hangs in an infinite loop.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message