Mark required commands in help text

This commit is contained in:
Alexey Golub
2019-08-18 14:14:13 +03:00
parent bd6b1a1134
commit 6648ae22eb

View File

@@ -175,7 +175,15 @@ namespace CliFx.Services
// Options
foreach (var option in options)
{
RenderIndent();
// Is required
if (option.IsRequired)
{
RenderWithColor("* ", ConsoleColor.Red);
}
else
{
RenderIndent();
}
// Short name
if (option.ShortName != null)