Skip to content

T_CommandLine_Parser

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

Parser Class

Provides methods to parse command line arguments.

Inheritance Hierarchy

System.Object
CommandLine.Parser
Namespace:CommandLine
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

publicclassParser:IDisposable

VB

PublicClassParserImplementsIDisposable

C++

public ref classParser : IDisposable

F#

typeParser=classinterface IDisposable end

The Parser type exposes the following members.

Constructors

NameDescription
Private methodStatic memberParser
Public methodParser() Initializes a new instance of the Parser class.
Protected methodParser(ParserSettings) Initializes a new instance of the Parser class
Public methodParser(Action(ParserSettings)) Initializes a new instance of the Parser class, configurable with ParserSettings using a delegate.
Back to Top

Properties

NameDescription
Public propertyStatic memberDefault Gets the singleton instance created with basic defaults.
Public propertySettings Gets the instance that implements ParserSettings in use.
Back to Top

Methods

NameDescription
Private methodStatic memberDisplayHelp(T)
Public methodDispose() Frees resources owned by the instance.
Private methodDispose(Boolean) Releases the unmanaged resources used by the Parser and optionally releases the managed resources
Public methodEquals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalize Finalizes an instance of the Parser class. (Overrides Object.Finalize().)
Public methodGetHashCode Serves as the default hash function. (Inherited from Object.)
Public methodGetType Gets the Type of the current instance. (Inherited from Object.)
Private methodStatic memberHandleUnknownArguments
Private methodStatic memberMakeParserResult(T)
Protected methodMemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodParseArguments(IEnumerable(String), Type[]) Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from the array of types supplied by types. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array.
Public methodParseArguments(T)(IEnumerable(String)) Parses a string array of command line arguments constructing values in an instance of type T. Grammar rules are defined decorating public properties with appropriate attributes.
Public methodParseArguments(T)(Func(T), IEnumerable(String)) Parses a string array of command line arguments constructing values in an instance of type T. Grammar rules are defined decorating public properties with appropriate attributes.
Private methodStatic memberTokenize
Public methodToString Returns a string that represents the current object. (Inherited from Object.)
Back to Top

Extension Methods

NameDescription
Public Extension MethodFormatCommandLine(T)(T)Overloaded.
Format a command line argument string from a parsed instance. (Defined by UnParserExtensions.)
Public Extension MethodFormatCommandLine(T)(T, Action(UnParserSettings))Overloaded.
Format a command line argument string from a parsed instance. (Defined by UnParserExtensions.)
Private Extension MethodIsEmpty (Defined by UnParserExtensions.)
Private Extension MethodNormalizeValue (Defined by UnParserExtensions.)
Public Extension MethodParseArguments(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Public Extension MethodParseArguments(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Public Extension MethodParseArguments(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Public Extension MethodParseArguments(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Public Extension MethodParseArguments(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Public Extension MethodParseArguments(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Public Extension MethodParseArguments(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Public Extension MethodParseArguments(T1, T2)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Public Extension MethodParseArguments(T1, T2, T3)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Public Extension MethodParseArguments(T1, T2, T3, T4)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Public Extension MethodParseArguments(T1, T2, T3, T4, T5)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Public Extension MethodParseArguments(T1, T2, T3, T4, T5, T6)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Public Extension MethodParseArguments(T1, T2, T3, T4, T5, T6, T7)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Public Extension MethodParseArguments(T1, T2, T3, T4, T5, T6, T7, T8)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Public Extension MethodParseArguments(T1, T2, T3, T4, T5, T6, T7, T8, T9)(IEnumerable(String))Overloaded.
Parses a string array of command line arguments for verb commands scenario, constructing the proper instance from types as generic arguments. Grammar rules are defined decorating public properties with appropriate attributes. The VerbAttribute must be applied to types in the array. (Defined by ParserExtensions.)
Back to Top

See Also

Reference

CommandLine Namespace

Clone this wiki locally