}
@Override
protected boolean parseArgument2(String[] args)
{
CommandLineParser cmdLnParser = new BasicParser();
CommandLine cmdLn = null;
Options optArgs = new Options();
Option cmdLineArg1 =
new Option("dataPointName", "Data Point Name (required)");
cmdLineArg1.setRequired(true);
cmdLineArg1.setArgs(1);
cmdLineArg1.setArgName("data-point-name");
Option cmdLineArg5 =
new Option("dataPointValue", "Data Point Value (required)");
cmdLineArg5.setRequired(true);
cmdLineArg5.setArgs(1);
cmdLineArg5.setArgName("data-point-value");
optArgs.addOption(cmdLineArg1);
optArgs.addOption(cmdLineArg5);
//parse the arguments
try
{
cmdLn = cmdLnParser.parse(optArgs, args);
}
catch (ParseException pe)
{
logger.error("Can not parse argument: " + pe.getLocalizedMessage());
HelpFormatter formatter = new HelpFormatter();