Skip to content

Commit ffba32c

Browse files
committed
Merge branch 'fix/IncorrectFormattingOfRequiredIndicatorInConsoleHelpWriter21'
Fixes #21
2 parents d5e4bad + 193fd27 commit ffba32c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AtleX.CommandLineArguments/Help/ConsoleHelpWriter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ public override void Write<T>(T argumentsToWriteHelpFor)
2828
Console.WriteLine();
2929
foreach (var currentHelpDetails in helpDetails)
3030
{
31-
var requiredIndicator = currentHelpDetails.IsRequired ? "*" : string.Empty;
31+
var requiredIndicator = currentHelpDetails.IsRequired ? "(*)" : string.Empty;
3232

33-
var helpTextForArgument = $" {currentHelpDetails.Argument}: {currentHelpDetails.Description} ({requiredIndicator})";
33+
var helpTextForArgument = $" {currentHelpDetails.Argument}: {currentHelpDetails.Description} {requiredIndicator}";
3434

3535
Console.WriteLine(helpTextForArgument);
3636
}

0 commit comments

Comments
 (0)