-
Notifications
You must be signed in to change notification settings - Fork 478
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
Error CS0029 Cannot implicitly convert type 'CommandLine.ParserResult<Options>' to 'Options' #511
Comments
modify:
to
|
And how am i supposed to access the variables inside it then? ParserResult does not contain a instance of Options |
You need to use WithParsed, something like: |
The [Pr #634) exposes The Parsed option Value to the base class, available in develop branch and will be released in v2.9. var result = Parser.Default.ParseArguments<Options>(args);
Arguments = result.Value; |
Thanks :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: