Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in help command #147

Open
dtv42 opened this issue Jul 26, 2023 · 0 comments
Open

Exception in help command #147

dtv42 opened this issue Jul 26, 2023 · 0 comments

Comments

@dtv42
Copy link

dtv42 commented Jul 26, 2023

When using a command loop calling help with an unknown command results in an System.NullReferenceException in Future.cs

Object reference not set to an instance of an object.
at NClap.Metadata.CommandGroup`1.get_Selection()

The minimal Program to show this behaviour is:

var loop = new Loop(typeof(CommandType));
loop.Execute();

public partial class Program
{
enum CommandType
{
[HelpCommand]
Help,

    [Command(typeof(ExitCommand))]
    Exit
}

}

Typing 'help exit' works as expected, typing 'help xxx' crashes.

nepolak added a commit to nepolak/NClap that referenced this issue Oct 21, 2023
…ommandGroup. This issue was open pretty good time ago reubeno#147
nepolak added a commit to nepolak/NClap that referenced this issue Oct 21, 2023
…ommandGroup. This issue was open pretty good time ago reubeno#147
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant