opts.addOption(optXMsgOTF);
opts.addOption(optVrfLnkTrgt);
opts.addOption(optPkgPrefx);
opts.addOption(optOutputFile);
UtilCommandLine ucl = new UtilCommandLine(opts, 80,
"xbn.programs.ReportBadJDLinkCodes",
null,
"\nFor documentation on these parameters, see the documentation for UtilJDLCode.reportJDLinkCodeErrors().",
true);
CommandLine cl = ucl.getCommandLine(as_cmdLineParams);
String sDocletClassMap = cl.getOptionValue("dcm");
boolean bAnalyzeJDLCs = cl.hasOption("nlzjdlcs");
boolean bReportAllSCLs = cl.hasOption("scl");
String sSourceCodeBaseDir = cl.getOptionValue("srcbase", null);
String sRelUrlJDToSourceBases = cl.getOptionValue("rujd2sib");
boolean bPrintXOnTheFly = cl.hasOption("xotf");
boolean bVerifyLinkTargetsExist = cl.hasOption("vltx");
Outputter optr = ucl.getOSDOOrOSDOAndFile("outfile", false);
String sDirToAnalyze = cl.getOptionValue("dir2nlz");
String sPkgPrefix = cl.getOptionValue("pkgpref", null);
//Prepare, set and get command line parameters...END
(new UtilJDLCode()).reportJDLinkCodeErrors(sDocletClassMap, sDirToAnalyze, bAnalyzeJDLCs, sSourceCodeBaseDir, sRelUrlJDToSourceBases, bReportAllSCLs, bVerifyLinkTargetsExist, bPrintXOnTheFly, sPkgPrefix, optr.getOWriter());