Package org.kohsuke.args4j

## Class NamedOptionDef

- java.lang.Object
- - org.kohsuke.args4j.OptionDef
  - - org.kohsuke.args4j.NamedOptionDef

    public final class NamedOptionDef
    extends OptionDef

Immutable run-time copy of `Option` annotation.

### Constructor Summary

Constructors
`NamedOptionDef​(Option o)`
`NamedOptionDef​(Option o, boolean forceMultiValued)` Deprecated. multi-valuedness as option definition does not make sense.

### Method Summary

All Methods Instance Methods Concrete Methods
`java.lang.String[]` `aliases()`
`java.lang.String[]` `depends()`
`java.lang.String[]` `forbids()`
`boolean` `isArgument()`
`java.lang.String` `name()`
`java.lang.String` `toString()`

### Methods inherited from class org.kohsuke.args4j.OptionDef

`handler, help, hidden, isMultiValued, metaVar, required, usage`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

### Constructor Detail

#### NamedOptionDef

    public NamedOptionDef​(Option o,
                          boolean forceMultiValued)

Deprecated.
multi-valuedness as option definition does not make sense. It's driven by the setter.

#### NamedOptionDef

    public NamedOptionDef​(Option o)

### Method Detail

#### name

    public java.lang.String name()

#### aliases

    public java.lang.String[] aliases()

#### depends

    public java.lang.String[] depends()

#### forbids

    public java.lang.String[] forbids()

#### toString

    public java.lang.String toString()

Overrides:
  `toString` in class `OptionDef`

#### isArgument

    public boolean isArgument()

Overrides:
  `isArgument` in class `OptionDef`