Sort commands by name in help text (#134)

This commit is contained in:
Dominique Louis
2023-04-01 01:04:56 +01:00
committed by GitHub
parent a09818d452
commit f0c040c7b9

View File

@@ -367,7 +367,8 @@ internal class HelpConsoleFormatter : ConsoleFormatter
{ {
var childCommandSchemas = _context var childCommandSchemas = _context
.ApplicationSchema .ApplicationSchema
.GetChildCommands(_context.CommandSchema.Name); .GetChildCommands(_context.CommandSchema.Name)
.OrderBy(a => a.Name, StringComparer.Ordinal);
if (!childCommandSchemas.Any()) if (!childCommandSchemas.Any())
return; return;