mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
Hide examples of hidden commands
This commit is contained in:

committed by
Patrik Svensson

parent
e4dda283bb
commit
2540f48622
@ -184,7 +184,7 @@ namespace Spectre.Console.Cli
|
||||
{
|
||||
var current = queue.Dequeue();
|
||||
|
||||
foreach (var cmd in current.Commands)
|
||||
foreach (var cmd in current.Commands.Where(x => !x.IsHidden))
|
||||
{
|
||||
if (cmd.Examples.Count > 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user