diff --git a/src/WeihanLi.Common/Helpers/CommandLineParser.cs b/src/WeihanLi.Common/Helpers/CommandLineParser.cs index cbb80a2b..408d79a6 100644 --- a/src/WeihanLi.Common/Helpers/CommandLineParser.cs +++ b/src/WeihanLi.Common/Helpers/CommandLineParser.cs @@ -109,7 +109,7 @@ public static IEnumerable ParseLine(string line, LineParseOptions? optio /// default argument value when not found /// arguments /// argument value - public static string? BooleanVal(string optionName, bool defaultValue = default, string[]? args = null) + public static bool BooleanVal(string optionName, bool defaultValue = default, string[]? args = null) { return GetOptionValueInternal(args ?? Environment.GetCommandLineArgs(), optionName).ToBoolean(defaultValue); }