Skip to content

Commit

Permalink
Update CommandLineParser.cs
Browse files Browse the repository at this point in the history
fix return value
  • Loading branch information
WeihanLi authored Jul 1, 2024
1 parent a55f507 commit d8a8a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WeihanLi.Common/Helpers/CommandLineParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static IEnumerable<string> ParseLine(string line, LineParseOptions? optio
/// <param name="defaultValue">default argument value when not found</param>
/// <param name="args">arguments</param>
/// <returns>argument value</returns>
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);
}
Expand Down

0 comments on commit d8a8a1e

Please sign in to comment.