Parser Class |
Namespace: PDTec.IceNet.Sdk.Utils.CommandLine
public sealed class Parser
The Parser type exposes the following members.
Name | Description | |
---|---|---|
HasDefaultArgument |
Does this parser have a default argument.
|
Name | Description | |
---|---|---|
ArgumentsUsage(Type) |
Returns a Usage string for command line argument parsing.
Use ArgumentAttributes to control parsing behaviour.
Formats the output to the width of the current console window.
| |
ArgumentsUsage(Type, Int32) |
Returns a Usage string for command line argument parsing.
Use ArgumentAttributes to control parsing behaviour.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetConsoleWindowWidth |
Returns the number of columns in the current console window
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUsageString |
A user firendly usage string describing the command line argument syntax.
| |
IndexOf |
Searches a StringBuilder for a character
| |
LastIndexOf |
Searches a StringBuilder for a character in reverse
| |
Parse |
Parses an argument list.
| |
ParseArguments(String, Object) |
Parses Command Line Arguments.
Errors are output on Console.Error.
Use ArgumentAttributes to control parsing behaviour.
| |
ParseArguments(String, Object, ErrorReporter) |
Parses Command Line Arguments.
Use ArgumentAttributes to control parsing behaviour.
| |
ParseArgumentsWithUsage |
Parses Command Line Arguments. Displays usage message to Console.Out
if /?, /help or invalid arguments are encounterd.
Errors are output on Console.Error.
Use ArgumentAttributes to control parsing behaviour.
| |
ParseHelp |
Checks if a set of arguments asks for help.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |