Package org.obolibrary.robot
Class ExtendedPosixParser
- java.lang.Object
-
- org.apache.commons.cli.Parser
-
- org.apache.commons.cli.PosixParser
-
- org.obolibrary.robot.ExtendedPosixParser
-
- All Implemented Interfaces:
org.apache.commons.cli.CommandLineParser
@Deprecated public class ExtendedPosixParser extends org.apache.commons.cli.PosixParser
Deprecated.A custom CommandLineParser that ignores unrecognized options without throwing an exception. See http://stackoverflow.com/a/8613949
-
-
Constructor Summary
Constructors Constructor Description ExtendedPosixParser(boolean ignoreUnrecognizedOption)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
processOption(String arg, ListIterator<String> iter)
Deprecated.
-
-
-
Constructor Detail
-
ExtendedPosixParser
@Deprecated public ExtendedPosixParser(boolean ignoreUnrecognizedOption)
Deprecated.Extend constructor to accept ignore option.- Parameters:
ignoreUnrecognizedOption
- when true, silently ignore unrecognized options
-
-
Method Detail
-
processOption
@Deprecated protected void processOption(String arg, ListIterator<String> iter) throws org.apache.commons.cli.ParseException
Deprecated.Given an argument string and an iterator, try to process the option, respecting the ignoreUnrecognizedOption flag.- Overrides:
processOption
in classorg.apache.commons.cli.Parser
- Parameters:
arg
- the argument to processiter
- the iterator for the super class to deal with- Throws:
org.apache.commons.cli.ParseException
- on any problems
-
-