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

sv check doesn't accept any arguments #417

Open
rChaoz opened this issue Jan 23, 2025 · 0 comments · May be fixed by #420
Open

sv check doesn't accept any arguments #417

rChaoz opened this issue Jan 23, 2025 · 0 comments · May be fixed by #420

Comments

@rChaoz
Copy link
Contributor

rChaoz commented Jan 23, 2025

$ sv check --tsconfig ./tsconfig.json
> error: too many arguments for 'check'. Expected 0 arguments but got 2.

This happens when upgrading from 0.6.11 to 0.6.12. Iooked at the changes between these versions and there's no changes to the code, but there commander's major version was bumped from 12 to 13, which is what's causing this issue. In the code used for the check command this is no longer enough:

.allowUnknownOption(true)

This causes any unknown options (i.e. arguments that start with a dash) to be treated as arguments instead. However because of breaking changes in commander:

Breaking: excess command-arguments cause an error by default, see migration tips (tj/commander.js#2223)

trying to pass any arguments/options results in errors.

@rChaoz rChaoz linked a pull request Jan 23, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant