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 stopAtNonDash property for commands #28

Open
ilg-ul opened this issue Mar 17, 2023 · 0 comments
Open

Add stopAtNonDash property for commands #28

ilg-ul opened this issue Mar 17, 2023 · 0 comments
Assignees

Comments

@ilg-ul
Copy link
Contributor

ilg-ul commented Mar 17, 2023

When processing options for commands, stop at N-th argument without a dash (i.e. not an option, but a package or file name).

This is useful for use cases like:

xpx --verbose @xpack-dev-tools/ninja-build ninja --version

The desired behaviour is to stop parsing for options when encountering ninja, to avoid consuming --version which should be passed to the comand, not to xpx.

@ilg-ul ilg-ul self-assigned this Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant