Table of Contents

Class CliParseResult

Namespace
Pl0.Cli.Cli
Assembly
Pl0.Cli.dll

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

options CompilerCliOptions

Parsed options.

diagnostics IReadOnlyList<CliDiagnostic>

Diagnostics from parsing.

Properties

Diagnostics

Gets the parse diagnostics.

public IReadOnlyList<CliDiagnostic> Diagnostics { get; }

Property Value

IReadOnlyList<CliDiagnostic>

ExitCode

Gets the exit code derived from diagnostics.

public int ExitCode { get; }

Property Value

int

HasErrors

Gets a value indicating whether any errors were found.

public bool HasErrors { get; }

Property Value

bool

Options

Gets the parsed options.

public CompilerCliOptions Options { get; }

Property Value

CompilerCliOptions