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

[Ftr] add an option to collect rest of positional arguments into a collection #137

Open
drewverlee opened this issue May 28, 2021 · 2 comments

Comments

@drewverlee
Copy link

Is your feature request related to a problem? Please describe.
I need to be able to supply O to N number of positional required arguments and ideally they would be handled similarly to the other options.

Describe the solution you'd like
From a user perspective this would look like providing an options map with a key :rest true. or maybe :short :rest sense :short is also used to handle positional arguments. This would configure it so all positional inputs past those given in the other shorts would be put into this collection.

Describe alternatives you've considered
I coerce and validate the arguments value in the function, but that would seem to defeat the purpose of the configuration map that provides clarity on how things are handled.

@l3nz
Copy link
Owner

l3nz commented Apr 7, 2022

Do you think #149 would be a solution?

@drewverlee
Copy link
Author

I believe so, though it's been a while since i encountered the issue. #149 looks like a good enchantment.

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