CryoViking
CryoViking
Sorry to bump this after such a long period, is there any intention of this being added?
I'm new to this codebase so I thought I would have a look through the code and run it through a debugger. I arrived at: Spectre.Console.Cli.Internal.Binding.CommandValueResolver ```cs public static CommandValueLookup...
The issue might also be that it's getting to the unmapped collection in the tree to begin with. Instead of the mapped collection.
Have finally determined that it gets to CommandExecutor.cs:138: ```cs if (lastParsedLeaf != null && lastParsedCommand != null && lastParsedCommand.IsBranch && !lastParsedLeaf.ShowHelp && lastParsedCommand.DefaultCommand != null) { // Adjust for any...
Will also note that I just tried: ```cs public sealed class ListUsersSettings : UserSettings { [CommandOption("-s|--seomthing-else")] [DefaultValue("something")] public string? SomethingElse { get; set; } } public sealed class ListUsers :...
Inside file: CommandInfoExtensions.cs ```cs public static bool AllowParentOption(this CommandInfo command, CommandOption option) { // Got an immediate parent? if (command?.Parent != null) { // Is the current node's settings type...
I am back again, I decided to have a closer look at the calling function in CommandModelBuilder.cs: ```cs private static IEnumerable GetParameters(CommandInfo command) { var result = new List(); var...
I will note that removing the call to ``AllowParentOption`` does fail 26 of the current tests. So it is critical to other features, but it's blocking this particular case, so...
Hmmm.... I have a question... why does the library limit the parents options in general? Even in the test cases, branch/default options don't show in the help menus for the...
@patriksvensson any chance you can point me in the desired direction for applying a bug fix, because from where I'm looking, it looks like the tests are wrong but then...