-
Notifications
You must be signed in to change notification settings - Fork 75
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 ArgParseResults be constructed? #35
Comments
My use case is I want a way to get this working: |
You can sort of achieve this by doing the following: type UnionArgParser<'Args when 'Args :> IArgParserTemplate> with
member parser.CreateParseResultsOfList(inputs : 'Args list) : ParseResults<'Args> =
let cliParams = parser.PrintCommandLine inputs // unparse inputs to cli form
parser.ParseCommandLine(inputs = cliParams, ignoreMissing = true) This will unparse the inputs to string and then re-parse them to form the required |
Awesome! Thanks. |
@eiriktsarpalis Any chance we can get something like |
@ctaggart I'm willing to accept PRs that implement this :-) |
For fsprojects/Paket#839, I would like to call these functions by constructing and passing in the
ArgParseResults
. Is this possible?The text was updated successfully, but these errors were encountered: