|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.crawler.CommandLineParser
public class CommandLineParser
Print Heritrix command-line usage message.
| Nested Class Summary | |
|---|---|
class |
CommandLineParser.HeritrixHelpFormatter
Override so can customize usage output. |
| Constructor Summary | |
|---|---|
CommandLineParser(java.lang.String[] args,
java.io.PrintWriter out,
java.lang.String version)
Constructor. |
|
| Method Summary | |
|---|---|
org.apache.commons.cli.CommandLine |
getCommandLine()
|
java.util.List |
getCommandLineArguments()
|
org.apache.commons.cli.Option[] |
getCommandLineOptions()
|
java.lang.String |
getVersion()
|
void |
message(java.lang.String message,
int exitCode)
Print message and then exit. |
void |
usage()
Print usage then exit. |
void |
usage(int exitCode)
Print usage then exit. |
void |
usage(java.lang.String message,
int exitCode)
Print message then usage then exit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandLineParser(java.lang.String[] args,
java.io.PrintWriter out,
java.lang.String version)
throws org.apache.commons.cli.ParseException
args - Command-line arguments to process.out - PrintStream to write on.version - Heritrix version
org.apache.commons.cli.ParseException - Failied parse of command line.| Method Detail |
|---|
public void usage()
public void usage(int exitCode)
exitCode -
public void usage(java.lang.String message,
int exitCode)
message - Message to print before we do usage.exitCode - Exit code to use in call to System.exit.
public void message(java.lang.String message,
int exitCode)
message - Message to print before we do usage.exitCode - Exit code to use in call to System.exit.public org.apache.commons.cli.Option[] getCommandLineOptions()
public java.util.List getCommandLineArguments()
public org.apache.commons.cli.CommandLine getCommandLine()
public java.lang.String getVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||