- java.lang.Object
-
- org.jline.builtins.Options
-
public class Options extends Object
Yet another GNU long options parser. This one is configured by parsing its Usage string. Code coming from Apache Felix Gogo Shell
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Options.HelpException
Exception thrown when using the--help
option on a built-in command.
-
Method Summary
-
-
-
Field Detail
-
NL
public static final String NL
-
-
Method Detail
-
setStopOnBadOption
public Options setStopOnBadOption(boolean stopOnBadOption)
-
setOptionsFirst
public Options setOptionsFirst(boolean optionsFirst)
-
isSet
public boolean isSet(String name)
-
getNumber
public int getNumber(String name)
-
usage
public void usage(PrintStream err)
-
usage
public String usage()
-
usageError
public IllegalArgumentException usageError(String s)
Prints usage message and returns IllegalArgumentException, for you to throw.- Parameters:
s
- the message to display- Returns:
- an exception with the generated message
-
-