mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
Mark required commands in help text
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user