RequiresAnyAttributeGetArguments Method

Resolves the argument names in the Arguments property to their actual CommandLineArgument instances.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public IEnumerable<CommandLineArgument> GetArguments(
	CommandLineParser parser
)

Parameters

parser  CommandLineParser
The CommandLineParser instance.

Return Value

IEnumerableCommandLineArgument
A list of the arguments.

Exceptions

ArgumentNullExceptionparser is .
InvalidOperationException One of the argument names in the Arguments property refers to an argument that doesn't exist.

See Also