net.sf.spring.batch.commandline
Class ArgumentParser
java.lang.Object
net.sf.spring.batch.commandline.ArgumentParser
- public class ArgumentParser
- extends Object
Parse the command line.
- Author:
- willy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
options
protected Options options
ArgumentParser
public ArgumentParser()
parse
public LauncherConfiguration parse(String[] args)
throws ParseException
- Parses the command line arguments
- Parameters:
args
- the command line arguments
- Returns:
- The configuration.
- Throws:
ParseException
- when options aren't correct.
displayHelp
public void displayHelp(String name)
buildOption
protected Option buildOption(char shortOpt,
String longOpt,
boolean required,
String description)
buildOption
protected Option buildOption(char shortOpt,
String longOpt,
boolean required,
String description,
int argCount,
String argName)
Copyright © 2009. All Rights Reserved.