Parse(IEnumerable, CommandRunConfig?) Method

Definition

Assembly XenoAtom.CommandLine.dll

Parses the specified arguments without invoking the resolved command action. Option and argument actions are still invoked.

public ParseResult Parse(IEnumerable<string> arguments, CommandRunConfig? runConfig = null)

Parameters

arguments
IEnumerable<String>

The arguments to parse.

runConfig
CommandRunConfig

Optional run configuration. When null, output streams are set to System.IO.TextWriter.Null to minimize side effects while parsing.

Returns

ParseResult
A parse result describing resolved command, values, and parsing errors.