Skip to content

Commit

Permalink
Helptext may contain aliases but no description
Browse files Browse the repository at this point in the history
  • Loading branch information
kristiker authored Aug 4, 2024
1 parent f29bc53 commit a6a87ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConsoleAppFramework/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ void ParseParameterDescription(string originalDescription, out string[] aliases,
if (splitOne[0].TrimStart().StartsWith("-"))
{
aliases = splitOne[0].Split(['|'], StringSplitOptions.RemoveEmptyEntries).Select(x => x.Trim()).ToArray();
description = splitOne[1].Trim();
description = splitOne.Length > 1 ? splitOne[1].Trim() : string.Empty;
}
else
{
Expand Down

0 comments on commit a6a87ff

Please sign in to comment.