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

Add support for *nix shell style file varargs #1

Open
vitling opened this issue Mar 26, 2020 · 0 comments
Open

Add support for *nix shell style file varargs #1

vitling opened this issue Mar 26, 2020 · 0 comments

Comments

@vitling
Copy link
Owner

vitling commented Mar 26, 2020

There is currently no way to pass through "main parameter" varargs, as might be expanded from a shell wildcard like "*.txt".

Possible mechanisms include:

  • A magic-named parameter which implies it'll take all the remaining args and parse them into a Seq
  • Allowing arbitrary varags by the possibility of multiple values for each --
  • Specialisation of the last arg at the type level by special-casing Seq[T] :: HNil
  • Annotation to suggest that a field should accept the "everything else" varargs.
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

1 participant