CommandLineParserTParse Method

Parses the arguments returned by the GetCommandLineArgs method.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 3.1.1
C#
public T Parse()

Return Value

T
An instance of the type specified by the ArgumentsType property, or if argument parsing was canceled by the ArgumentParsed event handler, the CancelParsing property, or a method argument that returned .

Remarks

If the return value is , check the HelpRequested property to see if usage help should be displayed.

Exceptions

CommandLineArgumentException An error occurred parsing the command line. Check the Category property for the exact reason for the error.

See Also