Fix NullReferenceException when creating a default immutable instance#495
Conversation
|
Ping. |
|
Thanks for your work.
Have a look to this discussion |
Sorry, I should have properly explained the purpose of this pull request in the description; this is actually not always the case. When help is requested, the code takes another path and we get a I'll have a look at #188, but it looks orthogonal at first sight. |
That is correct. But Parser isn't calling the The Parser still in help request fire The attached file is a demo project to demonestrate help request with the Immutable class. Edit: The next Test case Pass successfully. [Fact]
public void Parse_Immutable_with_default_ctor_and_help__request_throw_InvalidOperationException()
{
Action act = () => InvokeBuild<ValueWithNoSetterOptions>(new string[] { "--help" }, false);
act.Should().Throw<InvalidOperationException>();
} |
No description provided.