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

Required multiple arguments doesn't work #36

Closed
tersers opened this issue Dec 6, 2018 · 1 comment
Closed

Required multiple arguments doesn't work #36

tersers opened this issue Dec 6, 2018 · 1 comment

Comments

@tersers
Copy link

tersers commented Dec 6, 2018

Say I have an argument as follows:

private val urls: List<String> by argument("urls", help="Some list of URLs.").multiple(true)

No exception is thrown when the argument is not provided in the CLI. I believe an exception should definitely be thrown in this case. Is there something I'm missing or is this a bug?

Thanks :)

@ajalt
Copy link
Owner

ajalt commented Dec 6, 2018

Yep, that's a bug. Thanks for the report!

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