Package jargs.gnu

Class CmdLineParser.UnknownOptionException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CmdLineParser.NotFlagException, CmdLineParser.UnknownSuboptionException
Enclosing class:
CmdLineParser

public static class CmdLineParser.UnknownOptionException extends CmdLineParser.OptionException
Thrown when the parsed command-line contains an option that is not recognised. getMessage() returns an error string suitable for reporting the error to the user (in English).
See Also:
  • Method Details

    • getOptionName

      public String getOptionName()
      Gets the option name.
      Returns:
      the name of the option that was unknown (e.g. "-u")