T_CommandLine_Parser - adutton/commandline GitHub Wiki
Provides methods to parse command line arguments.
System.Object
CommandLine.Parser
Namespace: CommandLine
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0
C#
public class Parser : IDisposableVB
Public Class Parser
Implements IDisposableC++
public ref class Parser : IDisposableF#
type Parser =
class
interface IDisposable
endThe Parser type exposes the following members.
| Name | Description | |
|---|---|---|
![]()
|
Parser | |
![]() |
Parser() | Initializes a new instance of the Parser class. |
![]() |
Parser(ParserSettings) | Initializes a new instance of the Parser class |
![]() |
Parser(Action(ParserSettings)) | Initializes a new instance of the Parser class, configurable with ParserSettings using a delegate. |
| Name | Description | |
|---|---|---|
![]()
|
Default | Gets the singleton instance created with basic defaults. |
![]() |
Settings | Gets the instance that implements ParserSettings in use. |
| Name | Description | |
|---|---|---|
![]()
|
DisplayHelp(T) | |
![]() |
Dispose() | Frees resources owned by the instance. |
![]() |
Dispose(Boolean) | Releases the unmanaged resources used by the Parser and optionally releases the managed resources |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
Finalize | Finalizes an instance of the Parser class. (Overrides Object.Finalize().) |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]()
|
HandleUnknownArguments | |
![]()
|
MakeParserResult(T) | |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
ParseArguments(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. |
![]() |
ParseArguments(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. |
![]() |
ParseArguments(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. |
![]()
|
Tokenize | |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() |
FormatCommandLine(T)(T) | Overloaded. Format a command line argument string from a parsed instance. (Defined by UnParserExtensions.) |
![]() |
FormatCommandLine(T)(T, Action(UnParserSettings)) | Overloaded. Format a command line argument string from a parsed instance. (Defined by UnParserExtensions.) |
![]() |
IsEmpty | (Defined by UnParserExtensions.) |
![]() |
NormalizeValue | (Defined by UnParserExtensions.) |
![]() |
ParseArguments(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.) |
![]() |
ParseArguments(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.) |
![]() |
ParseArguments(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.) |
![]() |
ParseArguments(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.) |
![]() |
ParseArguments(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.) |
![]() |
ParseArguments(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.) |
![]() |
ParseArguments(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.) |
![]() |
ParseArguments(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.) |
![]() |
ParseArguments(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.) |
![]() |
ParseArguments(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.) |
![]() |
ParseArguments(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.) |
![]() |
ParseArguments(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.) |
![]() |
ParseArguments(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.) |
![]() |
ParseArguments(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.) |
![]() |
ParseArguments(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.) |





