Class OptionDef

  • Direct Known Subclasses:
    NamedOptionDef

    public class OptionDef
    extends java.lang.Object
    Run-time copy of the Option or Argument annotation. By definition, unnamed options are arguments (and instances of this class). Named options are actually a subclass.
    Author:
    Mark Sinke
    • Constructor Detail

      • OptionDef

        public OptionDef​(Argument a,
                         boolean forceMultiValued)
      • OptionDef

        protected OptionDef​(java.lang.String usage,
                            java.lang.String metaVar,
                            boolean required,
                            boolean help,
                            boolean hidden,
                            java.lang.Class<? extends OptionHandler> handler,
                            boolean multiValued)
    • Method Detail

      • usage

        public java.lang.String usage()
      • metaVar

        public java.lang.String metaVar()
      • required

        public boolean required()
      • help

        public boolean help()
      • handler

        public java.lang.Class<? extends OptionHandler> handler()
      • isMultiValued

        public boolean isMultiValued()
      • isArgument

        public boolean isArgument()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object