Click or drag to resize

CommandLineArgument Class

Provides information about command line arguments that are recognized by a CommandLineParser.
Inheritance Hierarchy
SystemObject
  Ookii.CommandLineCommandLineArgument

Namespace:  Ookii.CommandLine
Assembly:  Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntax
public sealed class CommandLineArgument

The CommandLineArgument type exposes the following members.

Properties
  NameDescription
Public propertyAliases
Gets the alternative names for this command line argument.
Public propertyAllowsDuplicateDictionaryKeys
Gets a value indicating whether this argument, if it is a dictionary argument, allows duplicate keys.
Public propertyArgumentName
Gets the name of this argument.
Public propertyArgumentType
Gets the type of the argument.
Public propertyDefaultValue
Gets the default value for an argument.
Public propertyDescription
Gets the description of the argument.
Public propertyElementType
Gets the element type of the argument.
Public propertyHasValue
Gets a value indicating whether the value of this argument was supplied on the command line in the last call to Parse(String, Int32).
Public propertyIsDictionary
Gets a value indicating whether this argument is a dictionary argument.
Public propertyIsMultiValue
Gets a value indicating whether this argument is a multi-value argument.
Public propertyIsRequired
Gets a value that indicates whether the argument is required.
Public propertyIsSwitch
Gets a value indicating whether this argument is a switch argument.
Public propertyMemberName
Gets the name of the property or constructor parameter that defined this command line argument.
Public propertyMultiValueSeparator
Gets the separator for the values if this argument is a multi-value argument
Public propertyPosition
Gets the position of this argument.
Public propertyUsedArgumentName
Gets the name or alias that was used on the command line to specify this argument.
Public propertyValue
Public propertyValueDescription
Gets the description of the property's value to use when printing usage information.
Top
Methods
  NameDescription
Public methodConvertToArgumentType
Converts the specified string to the argument type, as specified in the ArgumentType property.
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString
Returns a String that represents the current CommandLineArgument.
(Overrides ObjectToString.)
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also