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

Make it easier to block on parsing #27

Closed
xenomachina opened this issue Sep 29, 2017 · 0 comments
Closed

Make it easier to block on parsing #27

xenomachina opened this issue Sep 29, 2017 · 0 comments

Comments

@xenomachina
Copy link
Owner

To force parsing, one currently needs to do something like:

    val parser = ArgParser(args)
    val parsedArgs = ParsedArgs(parser)
    parser.force()
    // now you can use parsedArgs

It would be nice if the intermediate ArgParser didn't need to be named, so this could become a one-liner. Perhaps one could write something like:

    val parsedArgs = ArgParser(args).force(ParsedArgs)

This could be done by adding an optional parameter to force, or by creating a new method, hopefully with a better name.

shanethehat added a commit to shanethehat/kotlin-argparser that referenced this issue Oct 28, 2017
shanethehat added a commit to shanethehat/kotlin-argparser that referenced this issue Oct 31, 2017
shanethehat added a commit to shanethehat/kotlin-argparser that referenced this issue Oct 31, 2017
shanethehat added a commit to shanethehat/kotlin-argparser that referenced this issue Dec 19, 2017
shanethehat added a commit to shanethehat/kotlin-argparser that referenced this issue Dec 19, 2017
shanethehat added a commit to shanethehat/kotlin-argparser that referenced this issue Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant