Class Options

java.lang.Object
org.jline.builtins.Options

public class Options extends Object
A GNU-style long options parser that is configured by parsing its usage string.

This class provides a flexible command-line option parser that supports both short options (-a) and long options (--option), with or without arguments. The parser is configured by parsing a usage string that describes the available options and their arguments.

Features include:

  • Support for both short (-a) and long (--option) options
  • Required and optional option arguments
  • Automatic generation of help text
  • Support for subcommands
  • Type conversion for option arguments

Code originally from Apache Felix Gogo Shell, adapted for JLine.