jargs.gnu

Class CmdLineParser.UnknownOptionException

Enclosing Class:
CmdLineParser
Known Direct Subclasses:
CmdLineParser.NotFlagException, CmdLineParser.UnknownSuboptionException

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).

Method Summary

String
getOptionName()

Method Details

getOptionName

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

Copyright © 2001-2003 Steve Purcell. Copyright © 2002 Vidar Holen. Copyright © 2002 Michal Ceresna. Copyright © 2005 Ewan Mellor. Released under the terms of the BSD licence.