We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug If you have nested classes as following:
abstract class BaseCommand { [Option("--foo")] string Foo { get; } } [Command("test")] class TestCommand : BaseCommand { }
the --foo option is not configured. The issue here is that https://github.com/natemcmaster/CommandLineUtils/blob/988c426/src/CommandLineUtils/Internal/ReflectionHelper.cs#L50 does not return private properties of base classes.
--foo
Expected behavior I would expect the the --foo option to be available.
Additional context Version of McMaster.Extensions.Hosting.CommandLine: 2.4.2
The text was updated successfully, but these errors were encountered:
Add support for private base type options
8d9e352
Resolves natemcmaster#287
a7ac630
feature: add support for private base type options (#288)
b92f20e
Resolves #287
Alxandr
Successfully merging a pull request may close this issue.
Describe the bug
If you have nested classes as following:
the
--foo
option is not configured.The issue here is that https://github.com/natemcmaster/CommandLineUtils/blob/988c426/src/CommandLineUtils/Internal/ReflectionHelper.cs#L50 does not return private properties of base classes.
Expected behavior
I would expect the the
--foo
option to be available.Additional context
Version of McMaster.Extensions.Hosting.CommandLine: 2.4.2
The text was updated successfully, but these errors were encountered: