-
Notifications
You must be signed in to change notification settings - Fork 290
Issues with sub options #249
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
Comments
What version are you using? Based on the stable branch, your sample code works perfectly (for me). Based on Master, it fails to compile since the library has gone through some major changes for 2.0. |
📎 Please read: #250. Thanks for collaboration and patience! 😅 |
@wadewegner did you figure it out? I also tried your code and as @nemec I get the expected result; |
Same issue here with an almost identical class configuration. subOptions passed to callback is null, although options.subOption is valid with correct values (options.CpVerb in your case). |
I'm seeing this as well with latest version from nuget. |
@Jamby93 @brandorf latest stable or prerelease? I just tested again with 1.9.71 from NuGet, copy and pasting the above, and it works perfectly. VS 2015, .Net 4.5.2 in case you're running something different. The exact code: https://gist.github.com/nemec/bc9d78e47d7a7d8a72a9711488b3bfef |
I'm having an issue with the parser not figuring out my sub-options.
Here's the code in
Main
:This is pretty much right from the wiki.
My options are defined as this:
When I run with
cp
as the args, it works and the parser determines thatCPSubOptions
is thesubOptions
andinvokedVerbInstance
is set appropriately.However, when I run with
cp --name blah
orcp -n blah
, thesubOptions
is null, so it's not parsed properly.Any help?
The text was updated successfully, but these errors were encountered: