Table of Contents

Method Validate

Namespace
Ploch.CommandLine.Spectre
Assembly
Ploch.CommandLine.Spectre.dll

Validate(ConsoleAppInfo)

Validates that the application information is in a valid state: a name must be present and must not consist solely of whitespace, since the banner renders it as FigletText.

public static void Validate(this ConsoleAppInfo appInfo)

Parameters

appInfo ConsoleAppInfo

The application information to validate.

Exceptions

ArgumentNullException

Thrown when appInfo is null.

InvalidOperationException

Thrown when the application name is null, empty, or whitespace.