Better universal options, fix last commit

This commit is contained in:
Matt Nadareski
2021-02-03 10:48:23 -08:00
parent 6139f7672d
commit b543ceb4e0
14 changed files with 76 additions and 111 deletions

View File

@@ -956,7 +956,7 @@ namespace SabreTools.Core.Tools
/// <returns>LogLevel value corresponding to the string</returns>
public static LogLevel AsLogLevel(this string logLevel)
{
return logLevel.ToLowerInvariant() switch
return logLevel?.ToLowerInvariant() switch
{
"verbose" => LogLevel.VERBOSE,
"user" => LogLevel.USER,