Class OptionWithArg<T>

java.lang.Object
coneforest.clianthus.option.Option
coneforest.clianthus.option.OptionWithArg<T>
Direct Known Subclasses:
OptionCollector, OptionHolder

public abstract class OptionWithArg<T> extends Option
An abstract option with argument.
  • Constructor Details

    • OptionWithArg

      public OptionWithArg(String names)
      Creates new option with given names.
      Parameters:
      names - space-delimited names.
  • Method Details

    • handle

      public abstract void handle(String arg) throws ProcessingException
      Option argument is passed to this method.
      Parameters:
      arg - argument
      Throws:
      ProcessingException - when an error while handling the argument.