Class OptionCommands

java.lang.Object
org.jline.shell.impl.SimpleCommandGroup
org.jline.shell.impl.OptionCommands
All Implemented Interfaces:
CommandGroup

public class OptionCommands extends SimpleCommandGroup
Built-in option management commands: setopt, unsetopt, and setvar.

These commands control the LineReader's options and variables at runtime:

  • setopt OPTION ? enable a LineReader option
  • setopt ? list all enabled options
  • unsetopt OPTION ? disable a LineReader option
  • setvar NAME VALUE ? set a LineReader variable
  • setvar ? list all variables
Since:
4.0
  • Constructor Details

    • OptionCommands

      public OptionCommands(org.jline.reader.LineReader reader)
      Creates option commands for the given line reader.
      Parameters:
      reader - the line reader