public class Textfile2Html extends MainCmd
MainCmd.Argument, MainCmd.SetArgument
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
sVersion
Version, history and license.
|
argList, bHelpIswritten, cmdLineArgs, currdir, dateFormatMsg, errCmdline, fReport, kError_writeInfoDirectly, kInfo_writeInfoDirectly, kInfoln_writeInfoDirectly, kWarning_writeInfoDirectly, listAboutInfo, listHelpInfo, logMessageImplReport, mError_writeInfoDirectly, mNewln_writeInfoDirectly, msgDisp, mWarning_writeInfoDirectly, nLevelDisplayToReport, nLogLevel, nReportLevelDisplay, outCmdline
debug, error, exitSuccessfull, exitUserAbort, exitWithArgumentError, exitWithErrors, exitWithFileProblems, exitWithNotes, exitWithWarnings, fineDebug, fineInfo, info, mNeverOutputToDisplay, mReportLevel, version, warning
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkArguments()
Checks the cmdline arguments relation together.
|
static void |
main(java.lang.String[] args)
main started from java
The command line arguments follow this help text:
|
boolean |
testArgument(java.lang.String arg,
int nArg)
Tests one argument.
|
addAboutInfo, addArgument, addHelpInfo, addMsgConfig, addStandardHelpInfo, callWithoutArguments, close, currdir, executeCmdLine, executeCmdLine, executeCmdLine, executeCmdLine, exit, flush, flushReport, getArgument, getExitErrorLevel, getLogging_ifc, getLogMessageErrorConsole, getLogMessageOutputConsole, getLogMessageOutputFile, getReportFileName, getReportLevel, getReportLevelFromIdent, isOnline, openReportfile, parseArguments, parseArguments, report, report, reportln, reportln, sendMsg, sendMsgTime, sendMsgVaList, setcurrdir, setExitErrorLevel, setLogMessageDestination, setOutputChannels, setReportLevel, setReportLevelToIdent, startCmdLine, startCmdLine, switchToWindowOrStartCmdline, writeAboutInfo, writeDirectly, writeError, writeError, writeErrorDirectly, writeHelpInfo, writeInfo, writeInfoln, writeStackTrace, writeWarning, XXXassertion
public static final java.lang.String sVersion
protected boolean checkArguments()
checkArguments
in class MainCmd
public static void main(java.lang.String[] args)
super.addHelpInfo("param: -iINPUT -oOUTPUT -fFILE -linesize:size"); super.addStandardHelpInfo(); super.addHelpInfo("-iINPUT inputfilepath, a xml like file."); super.addHelpInfo("-oOUTPUT outputfilepath, this file is written."); super.addHelpInfo("-fFILE if this argument is given, read from INPUT/FILE, write to OUTPUT/FILE.html."); super.addHelpInfo("-linesize: length of a line, a wrapping is generated after it.");
public boolean testArgument(java.lang.String arg, int nArg)
testArgument
in class MainCmd
argc
- String of the actual parsed argument from cmd linenArg
- number of the argument in order of the command line, the first argument is number 1.