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

Glob multiple position arguments #149

Open
l3nz opened this issue Apr 7, 2022 · 0 comments
Open

Glob multiple position arguments #149

l3nz opened this issue Apr 7, 2022 · 0 comments

Comments

@l3nz
Copy link
Owner

l3nz commented Apr 7, 2022

version

0.5.2 / JVM

problem

At the moment, you cannot have both a positional argument and :multi , because only the first argument will be globbed. In theory, you should be able to glob multiple positional arguments if the positional argument is the last one and :multi is enabled.

repro

See https://github.com/l3nz/cli-matic/blob/master/examples/clj/multi_positional.clj

expected/actual behavior

If we run:

$ ./multi_positional.clj add --addendum 3 --addendum 5
8

But if we run

$ ./multi_positional.clj add 3 5

We get 3 and not 8 because the second argument is not globbed

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