Class ConfigOption

All Implemented Interfaces:
Cloneable, Comparable<Operand<?>>, ArgsAccessor, Constituent, Operand<String>, Option<String>, Synopsisable, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.Clonable, org.refcodes.mixin.DescriptionAccessor, org.refcodes.mixin.Resetable, org.refcodes.mixin.Schemable<CliSchema>, org.refcodes.mixin.TypeAccessor<String>, org.refcodes.mixin.ValueAccessor<String>

public class ConfigOption extends StringOption
The ConfigOption represents an Option holding a value specifying a configuration resource (file).
  • Field Details

  • Constructor Details

    • ConfigOption

      public ConfigOption(String aDescription)
      Instantiates a new config (file) Option.
      Parameters:
      aDescription - The description to use.
    • ConfigOption

      public ConfigOption(String aDescription, boolean hasShortOption)
      Constructs the predefined config (file) Option.
      Parameters:
      aDescription - The description to be used (without any line breaks).
      hasShortOption - True in case to also enable the short option, else only the long option takes effect.
    • ConfigOption

      public ConfigOption()
      Constructs the predefined config (file) Option.
    • ConfigOption

      public ConfigOption(boolean hasShortOption)
      Constructs the predefined config (file) Option.
      Parameters:
      hasShortOption - True in case to also enable the short option, else only the long option takes effect.
  • Method Details

    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.refcodes.mixin.DescriptionAccessor