Click or drag to resize
HelpOptionAttribute Class
Indicates the instance method that must be invoked when it becomes necessary show your help screen. The method signature is an instance method with no parameters and String return value.
Inheritance Hierarchy

Namespace: X3Platform.CommandLine
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public sealed class HelpOptionAttribute : BaseOptionAttribute

The HelpOptionAttribute type exposes the following members.

Constructors
  NameDescription
Public methodHelpOptionAttribute
Initializes a new instance of the HelpOptionAttribute class. Although it is possible, it is strongly discouraged redefine the long name for this option not to disorient your users. It is also recommended not to define a short one.
Public methodHelpOptionAttribute(Char)
Initializes a new instance of the HelpOptionAttribute class with the specified short name. Use parameter less constructor instead.
Public methodHelpOptionAttribute(String)
Initializes a new instance of the HelpOptionAttribute class with the specified long name. Use parameter less constructor instead.
Public methodHelpOptionAttribute(Char, String)
Initializes a new instance of the HelpOptionAttribute class. Allows you to define short and long option names.
Top
Methods
  NameDescription
Public methodEquals (Inherited from Attribute.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Public methodToString (Inherited from Object.)
Top
Properties
  NameDescription
Public propertyDefaultValue
Gets or sets mapped property default value.
(Inherited from BaseOptionAttribute.)
Public propertyHelpText
Gets or sets a short description of this command line option. Usually a sentence summary.
(Inherited from BaseOptionAttribute.)
Public propertyLongName
Gets long name of this command line option. This name is usually a single english word.
(Inherited from BaseOptionAttribute.)
Public propertyMetaValue
Gets or sets mapped property meta value.
(Inherited from BaseOptionAttribute.)
Public propertyMutuallyExclusiveSet
Gets or sets the option's mutually exclusive set.
(Inherited from BaseOptionAttribute.)
Public propertyRequired
Returns always false for this kind of option. This behaviour can't be changed by design; if you try set Required an InvalidOperationException will be thrown.
(Overrides BaseOptionAttributeRequired.)
Public propertyShortName
Gets a short name of this command line option. You can use only one character.
(Inherited from BaseOptionAttribute.)
Public propertyTypeId (Inherited from Attribute.)
Top
See Also