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

Can't override Argument.Parse in my own argument class #51

Closed
dacendale opened this issue Oct 13, 2017 · 2 comments
Closed

Can't override Argument.Parse in my own argument class #51

dacendale opened this issue Oct 13, 2017 · 2 comments

Comments

@dacendale
Copy link

Looking at the code the virtual Parse method is marked as internal. I can't extend from Argument (or one of its subclasses) and override Parse. This completely negates me from using this library to parse a command line with multiple strings for a single value. For example, if I try to add a convert handler to a ValueArgument it is just passed a single string and I need multiple strings to convert to my value type.

@j-maly
Copy link
Owner

j-maly commented Oct 13, 2017

Parse made public in v 3.0.18. Good luck with your project.

@j-maly j-maly closed this as completed Oct 13, 2017
@dacendale
Copy link
Author

Thanks for that incredible response!

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

2 participants