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
appInfoConsoleAppInfoThe application information to validate.
Exceptions
- ArgumentNullException
Thrown when
appInfois null.- InvalidOperationException
Thrown when the application name is null, empty, or whitespace.