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

Extend argument for supporting Guid values #46

Closed
delfuria opened this issue Jul 19, 2017 · 2 comments
Closed

Extend argument for supporting Guid values #46

delfuria opened this issue Jul 19, 2017 · 2 comments

Comments

@delfuria
Copy link

I tried to extend the library for supporting Guid values.
I have created a GuidArgumentAttribute and a GuidArgument classes following this link
https://github.com/j-maly/CommandLineParser/wiki/Extensibility-&-custom-arguments
but i cannot reach to execute because i get a MissingMethodException.
What has been wrong ?
Thanks

@j-maly j-maly closed this as completed in 463b7dd Jul 20, 2017
@j-maly
Copy link
Owner

j-maly commented Jul 20, 2017

Since Guid was not one of the types supported out of the box by ValueArgument, you would need to override this method:
public virtual TValue Convert(string stringValue)

But now I've added Guid to ValueArgument directly as you suggested.

@delfuria
Copy link
Author

Thanks a lot.

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