Package org.kohsuke.args4j.spi
Interface Parameters
-
public interface ParametersList of arguments.Object of this interface is passed to
OptionHandlers to make it easy/safe to parse additional parameters for options.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetParameter(int idx)Gets the additional parameter to this option.intsize()Number of remaining tokens.
-
-
-
Method Detail
-
getParameter
java.lang.String getParameter(int idx) throws CmdLineExceptionGets the additional parameter to this option.- Parameters:
idx- specifying 0 will retrieve the token next to the option. For example, if the command line looks like-o abc -d x, thengetParameter(0)for-oreturnsabcandgetParameter(1)will return-d.- Returns:
- Always return non-
nullvalidString. If an attempt is made to access a non-existent index, this method throws appropriateCmdLineException. - Throws:
CmdLineException
-
size
int size()
Number of remaining tokens.
-
-