options.addOption("l", "data log path", true, "File path where the logs will be written.");
options.addOption("p", "original data path", true, "Path where zip files will be stored.");
options.addOption("b", "original tsv path", true, "Path where tsv files will be stored.");
options.addOption("r", "raw data path", true, "Path where the uncompressed files will be stored.");
options.addOption("a", "sdmx ttl file", true, "Path where the sdmx ttl is located.");
CommandLine commandLine = parser.parse( options, args );
if( commandLine.hasOption('h') ) {
usage();
return;
}
if(commandLine.hasOption('a'))
sdmxTTLFile = commandLine.getOptionValue('a');
if(commandLine.hasOption('i'))
inputFilePath = commandLine.getOptionValue('i');
if(commandLine.hasOption('o'))
outputFilePath = commandLine.getOptionValue('o');
if(commandLine.hasOption('f'))
logFilePath = commandLine.getOptionValue('f');
if(commandLine.hasOption('z'))
tempZipPath = commandLine.getOptionValue('z');
if(commandLine.hasOption('t'))
tempDataPath = commandLine.getOptionValue('t');
if(commandLine.hasOption('s'))
dataPath = commandLine.getOptionValue('s');
if(commandLine.hasOption('d'))
dsdPath = commandLine.getOptionValue('d');
if(commandLine.hasOption('l'))
dataLogPath = commandLine.getOptionValue('l');
if(commandLine.hasOption('p'))
originalDataPath = commandLine.getOptionValue('p');
if(commandLine.hasOption('r'))
rawDataPath = commandLine.getOptionValue('r');
if(commandLine.hasOption('b'))
originalTSVPath = commandLine.getOptionValue('b');
if(commandLine.hasOption('v'))
tempTsvPath = commandLine.getOptionValue('v');
if(tempTsvPath.equals("") || originalTSVPath.equals("") || inputFilePath.equals("") || outputFilePath.equals("") || logFilePath.equals("") || tempZipPath.equals("") || tempDataPath.equals("") || dsdPath.equals("") || dataPath.equals("") || dataLogPath.equals("") || originalDataPath.equals("") || rawDataPath.equals("") || sdmxTTLFile.equals(""))
{
usage();
return;