Class 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 Summary

      Constructors 
      Constructor Description
      OptionCommands​(LineReader reader)
      Creates option commands for the given line reader.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OptionCommands

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