Skip to content

Properties_T_CommandLine_OptionAttribute

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

OptionAttribute Properties

The OptionAttribute type exposes the following members.

Properties

 

Name Description
Public property Default Gets or sets mapped property default value. (Inherited from BaseAttribute.)
Public property HelpText Gets or sets a short description of this command line option. Usually a sentence summary. (Inherited from BaseAttribute.)
Public property Hidden Gets or sets a value indicating whether a command line option is visible in the help text. (Inherited from BaseAttribute.)
Public property LongName Gets long name of this command line option. This name is usually a single english word.
Public property Max When applied to IEnumerable(T) properties defines the upper range of items. (Inherited from BaseAttribute.)
Public property MetaValue Gets or sets mapped property meta value. Usually an uppercase hint of required value type. (Inherited from BaseAttribute.)
Public property Min When applied to IEnumerable(T) properties defines the lower range of items. (Inherited from BaseAttribute.)
Public property Required Gets or sets a value indicating whether a command line option is required. (Inherited from BaseAttribute.)
Public property ResourceType Gets or sets the Type that contains the resources for HelpText. (Inherited from BaseAttribute.)
Public property Separator When applying attribute to IEnumerable(T) target properties, it allows you to split an argument and consume its content as a sequence.
Public property SetName Gets or sets the option's mutually exclusive set name.
Public property ShortName Gets a short name of this command line option, made of one character.
Public property TypeId When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.)
  Back to Top

See Also

Reference

OptionAttribute Class
CommandLine Namespace

Clone this wiki locally