Class CliParseResult
Result of parsing CLI arguments.
public sealed class CliParseResult
- Inheritance
-
CliParseResult
- Inherited Members
Constructors
CliParseResult(CompilerCliOptions, IReadOnlyList<CliDiagnostic>)
Creates a new parse result.
public CliParseResult(CompilerCliOptions options, IReadOnlyList<CliDiagnostic> diagnostics)
Parameters
optionsCompilerCliOptionsParsed options.
diagnosticsIReadOnlyList<CliDiagnostic>Diagnostics from parsing.
Properties
Diagnostics
Gets the parse diagnostics.
public IReadOnlyList<CliDiagnostic> Diagnostics { get; }
Property Value
ExitCode
Gets the exit code derived from diagnostics.
public int ExitCode { get; }
Property Value
HasErrors
Gets a value indicating whether any errors were found.
public bool HasErrors { get; }
Property Value
Options
Gets the parsed options.
public CompilerCliOptions Options { get; }