use of org.kohsuke.args4j.CmdLineParser in project ORCID-Source by ORCID.
the class ResaveProfiles method main.
public static void main(String[] args) throws IOException {
ResaveProfiles resaveProfiles = new ResaveProfiles();
CmdLineParser parser = new CmdLineParser(resaveProfiles);
try {
parser.parseArgument(args);
resaveProfiles.validateArgs(parser);
resaveProfiles.init();
resaveProfiles.execute();
} catch (CmdLineException e) {
System.err.println(e.getMessage());
parser.printUsage(System.err);
System.exit(1);
} catch (Throwable t) {
System.err.println(t);
System.exit(2);
}
System.exit(0);
}
use of org.kohsuke.args4j.CmdLineParser in project ORCID-Source by ORCID.
the class TransformFundRefDataIntoCSV method main.
/*****************************************************************************
************************************* MAIN **********************************
***************************************************************************** */
public static void main(String[] args) {
TransformFundRefDataIntoCSV mergeData = new TransformFundRefDataIntoCSV();
CmdLineParser parser = new CmdLineParser(mergeData);
try {
parser.parseArgument(args);
mergeData.validateArgs(parser);
mergeData.process();
} catch (CmdLineException e) {
System.err.println(e.getMessage());
parser.printUsage(System.err);
}
}
use of org.kohsuke.args4j.CmdLineParser in project ORCID-Source by ORCID.
the class ProcessDisambiguatedOrgsForIndexing method main.
public static void main(String[] args) {
ProcessDisambiguatedOrgsForIndexing processDisambiguatedOrgsForIndexing = new ProcessDisambiguatedOrgsForIndexing();
CmdLineParser parser = new CmdLineParser(processDisambiguatedOrgsForIndexing);
try {
parser.parseArgument(args);
processDisambiguatedOrgsForIndexing.validateArgs(parser);
processDisambiguatedOrgsForIndexing.init();
processDisambiguatedOrgsForIndexing.execute();
} catch (CmdLineException e) {
System.err.println(e.getMessage());
parser.printUsage(System.err);
}
}
use of org.kohsuke.args4j.CmdLineParser in project ORCID-Source by ORCID.
the class ProcessDisambiguatedOrgsWithIncorrectPopularity method main.
public static void main(String[] args) {
ProcessDisambiguatedOrgsWithIncorrectPopularity processDisambiguatedOrgsWithIncorrectPopularity = new ProcessDisambiguatedOrgsWithIncorrectPopularity();
CmdLineParser parser = new CmdLineParser(processDisambiguatedOrgsWithIncorrectPopularity);
try {
parser.parseArgument(args);
processDisambiguatedOrgsWithIncorrectPopularity.validateArgs(parser);
processDisambiguatedOrgsWithIncorrectPopularity.init();
processDisambiguatedOrgsWithIncorrectPopularity.execute();
} catch (CmdLineException e) {
System.err.println(e.getMessage());
parser.printUsage(System.err);
}
}
use of org.kohsuke.args4j.CmdLineParser in project ORCID-Source by ORCID.
the class RemoveOrphanClients method main.
public static void main(String[] args) throws IOException {
RemoveOrphanClients resaveProfiles = new RemoveOrphanClients();
CmdLineParser parser = new CmdLineParser(resaveProfiles);
try {
parser.parseArgument(args);
resaveProfiles.init();
resaveProfiles.execute();
} catch (CmdLineException e) {
System.err.println(e.getMessage());
parser.printUsage(System.err);
System.exit(1);
} catch (Throwable t) {
System.err.println(t);
System.exit(2);
}
System.exit(0);
}
Aggregations