CommandLineParserParse Method (String) |
Parses the specified command line arguments.
Namespace:
Ookii.CommandLine
Assembly:
Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntaxpublic Object Parse(
string[] args
)
Public Function Parse (
args As String()
) As Object
Dim instance As CommandLineParser
Dim args As String()
Dim returnValue As Object
returnValue = instance.Parse(args)
public:
Object^ Parse(
array<String^>^ args
)
Parameters
- args
- Type: SystemString
The command line arguments.
Return Value
Type:
Object
An instance of the type specified by the
ArgumentsType property, or
if argument
parsing was cancelled by the
ArgumentParsed event handler.
ExceptionsException | Condition |
---|
ArgumentNullException | args is .
|
CommandLineArgumentException |
Too many positional arguments were supplied, a required argument was not supplied, an unknown argument name was supplied,
no value was supplied for a named argument, an argument was supplied more than once and AllowDuplicateArguments
is , or one of the argument values could not be converted to the argument's type.
|
See Also