public interface Parameters
Object of this interface is passed to
OptionHandler
s to make it easy/safe to parse
additional parameters for options.
Modifier and Type | Method and Description |
---|---|
String |
getParameter(int idx)
Gets the additional parameter to this option.
|
int |
size()
Number of remaining tokens.
|
String getParameter(int idx) throws CmdLineException
idx
- specifying 0 will retrieve the token next to the option.
For example, if the command line looks like -o abc -d x
,
then getParameter(0)
for -o
returns abc
and getParameter(1)
will return -d
.null
valid String
. If an attempt is
made to access a non-existent index, this method throws
appropriate CmdLineException
.CmdLineException
int size()
Copyright © 2003-2016 Kohsuke Kawaguchi. All Rights Reserved.