public class SubcommandHandler extends org.kohsuke.args4j.spi.OptionHandler<TextBuiltin>
Translates a single argument string to a TextBuiltin
instance which
we can execute at runtime with the remaining arguments of the parser.
Constructor and Description |
---|
SubcommandHandler(org.kohsuke.args4j.CmdLineParser parser,
org.kohsuke.args4j.OptionDef option,
org.kohsuke.args4j.spi.Setter<? super TextBuiltin> setter)
Create a new handler for the command name.
|
Modifier and Type | Method and Description |
---|---|
String |
getDefaultMetaVariable() |
int |
parseArguments(org.kohsuke.args4j.spi.Parameters params) |
public SubcommandHandler(org.kohsuke.args4j.CmdLineParser parser, org.kohsuke.args4j.OptionDef option, org.kohsuke.args4j.spi.Setter<? super TextBuiltin> setter)
This constructor is used only by args4j.
parser
- option
- setter
- public int parseArguments(org.kohsuke.args4j.spi.Parameters params) throws org.kohsuke.args4j.CmdLineException
parseArguments
in class org.kohsuke.args4j.spi.OptionHandler<TextBuiltin>
org.kohsuke.args4j.CmdLineException
public String getDefaultMetaVariable()
getDefaultMetaVariable
in class org.kohsuke.args4j.spi.OptionHandler<TextBuiltin>
Copyright © 2017 Eclipse JGit Project. All rights reserved.