|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectname.kevinlocke.ultragetopt.DarwinGetoptErrorFormatter
public class DarwinGetoptErrorFormatter
Error formatter designed to mimic the output of getopt on a Darwin (Mac OS) system.
| Constructor Summary | |
|---|---|
DarwinGetoptErrorFormatter(java.lang.String programname)
Create a new instance of the formatter for Darwin-like Getopt errors. |
|
| Method Summary | |
|---|---|
java.lang.String |
ambiguousOption(java.lang.String option,
java.lang.String leaders)
Formats an error message to indicate that the given option could not be unambiguously interpreted. |
java.lang.String |
missingRequiredArgument(char option,
java.lang.String leaders)
Formats an error message to indicate that the given option requires an argument and that none was found. |
java.lang.String |
missingRequiredArgument(java.lang.String option,
java.lang.String leaders)
Formats an error message to indicate that the given option requires an argument and that none was found. |
java.lang.String |
noArgumentAllowed(char option,
java.lang.String leaders)
Formats an error message to indicate that the given option does not accept any arguments. |
java.lang.String |
noArgumentAllowed(java.lang.String option,
java.lang.String leaders)
Formats an error message to indicate that the given option does not accept any arguments. |
java.lang.String |
unrecognizedOption(char option,
java.lang.String leaders)
Formats an error message to indicate that the given option was not recognized. |
java.lang.String |
unrecognizedOption(java.lang.String option,
java.lang.String leaders)
Formats an error message to indicate that the given option was not recognized. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DarwinGetoptErrorFormatter(java.lang.String programname)
programname - The name of the program for printing to messages| Method Detail |
|---|
public java.lang.String ambiguousOption(java.lang.String option,
java.lang.String leaders)
GetoptErrorFormatter
ambiguousOption in interface GetoptErrorFormatteroption - The option which was ambiguousleaders - The leader characters of the option (e.g. "--")
public java.lang.String missingRequiredArgument(java.lang.String option,
java.lang.String leaders)
GetoptErrorFormatter
missingRequiredArgument in interface GetoptErrorFormatteroption - The option which does is missing an argumentleaders - The leader characters of the option (e.g. "--")
public java.lang.String missingRequiredArgument(char option,
java.lang.String leaders)
GetoptErrorFormatter
missingRequiredArgument in interface GetoptErrorFormatteroption - The option which does is missing an argumentleaders - The leader characters of the option (e.g. "--")
public java.lang.String noArgumentAllowed(java.lang.String option,
java.lang.String leaders)
GetoptErrorFormatter
noArgumentAllowed in interface GetoptErrorFormatteroption - The option which does not take argumentsleaders - The leader characters of the option (e.g. "--")
public java.lang.String noArgumentAllowed(char option,
java.lang.String leaders)
GetoptErrorFormatter
noArgumentAllowed in interface GetoptErrorFormatteroption - The option which does not take argumentsleaders - The leader characters of the option (e.g. "--")
public java.lang.String unrecognizedOption(java.lang.String option,
java.lang.String leaders)
GetoptErrorFormatter
unrecognizedOption in interface GetoptErrorFormatteroption - The option which was not recognizedleaders - The leader characters of the option (e.g. "--")
public java.lang.String unrecognizedOption(char option,
java.lang.String leaders)
GetoptErrorFormatter
unrecognizedOption in interface GetoptErrorFormatteroption - The option which was not recognizedleaders - The leader characters of the option (e.g. "--")
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||