CommandLineParserGetArgument Method

Gets a command line argument by name or alias.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 3.1.1
C#
public CommandLineArgument? GetArgument(
	string name
)

Parameters

name  String
The name or alias of the argument.

Return Value

CommandLineArgument
The CommandLineArgument instance containing information about the argument, or if the argument was not found.

Remarks

If the Mode property is LongShort, this uses the long name and long aliases of the argument.

Exceptions

See Also