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

Native support for collecting multiple arguments into a collection #38

Open
Kixunil opened this issue Apr 12, 2020 · 0 comments
Open

Native support for collecting multiple arguments into a collection #38

Kixunil opened this issue Apr 12, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Kixunil
Copy link
Owner

Kixunil commented Apr 12, 2020

It's currently possible to collect multiple arguments by using custom merge_fn, but that would require a newtype wrapper around the collection that implements ParseArg by inserting it into the collection. It might be nicer to avoid forcing everyone into implementing it by either:

  • Providing a generic version of it
  • Adding an option to specification and modifying codegen
  • Possibly adding a shortcut option, but internally using that wrapper type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant