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

oclif@v2: argument not read, if after a flag with multiple: true #597

Closed
shazron opened this issue Oct 4, 2022 · 4 comments
Closed

oclif@v2: argument not read, if after a flag with multiple: true #597

shazron opened this issue Oct 4, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@shazron
Copy link
Member

shazron commented Oct 4, 2022

See oclif/core#496

@shazron shazron added the bug Something isn't working label Oct 4, 2022
@shazron shazron changed the title oclifv2: argument not read, if after a flag with multiple: true oclif@v2: argument not read, if after a flag with multiple: true Oct 4, 2022
@aiojbot
Copy link
Collaborator

aiojbot commented Oct 4, 2022

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-1823

@shazron
Copy link
Member Author

shazron commented Aug 3, 2023

Workaround from the linked issue:
You can use -- after the multiple (or any other) flag to ensure that the following values are parsed as args and not as values.

oclif FlagsTest -m abc123 abc456 -- Foobar

@shazron
Copy link
Member Author

shazron commented Aug 3, 2023

There is now a warning for this situation in @oclif/[email protected] or greater: oclif/core#754

@shazron
Copy link
Member Author

shazron commented Aug 3, 2023

This is a wontfix from oclif since it requires a major version bump, for now use the workaround, and the warning also helps

@shazron shazron closed this as completed Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants