| java.lang.Object org.archive.crawler.CommandLineParser
CommandLineParser | public class CommandLineParser (Code) | | Print Heritrix command-line usage message.
author: stack version: $Id: CommandLineParser.java 4551 2006-08-29 00:47:56Z stack-sf $ |
Inner Class :public class HeritrixHelpFormatter extends HelpFormatter | |
CommandLineParser | public CommandLineParser(String[] args, PrintWriter out, String version) throws ParseException(Code) | | Constructor.
Parameters: args - Command-line arguments to process. Parameters: out - PrintStream to write on. Parameters: version - Heritrix version throws: ParseException - Failied parse of command line. |
getCommandLine | public CommandLine getCommandLine()(Code) | | Command line. |
getCommandLineArguments | public List getCommandLineArguments()(Code) | | Arguments passed on the command line. |
getCommandLineOptions | public Option[] getCommandLineOptions()(Code) | | Options passed on the command line. |
getVersion | public String getVersion()(Code) | | Returns the version. |
message | public void message(String message, int exitCode)(Code) | | Print message and then exit.
The JVM exits inside in this method.
Parameters: message - Message to print before we do usage. Parameters: exitCode - Exit code to use in call to System.exit. |
usage | public void usage()(Code) | | Print usage then exit.
|
usage | public void usage(int exitCode)(Code) | | Print usage then exit.
Parameters: exitCode - |
usage | public void usage(String message, int exitCode)(Code) | | Print message then usage then exit.
The JVM exits inside in this method.
Parameters: message - Message to print before we do usage. Parameters: exitCode - Exit code to use in call to System.exit. |
|
|