-
Notifications
You must be signed in to change notification settings - Fork 378
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
CLI commands silently ignore extra command line arguments #1520
Labels
Comments
Would you like to create a PR to address this issue? |
The command is defined at https://github.com/nestjs/nest-cli/blob/master/commands/generate.command.ts#L11 Also the same issue seems to affect at least some other commands, e.g.
@kamilmysliwiec what kind of tests would this PR require? |
Pipeliner
changed the title
Generators silently ignore extra command line arguments
CLI commands silently ignore extra command line arguments
Feb 10, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Current behavior
Running
nest g resource aa bb cc dd ee
createsaa
resource inbb
folder, silently ignoring trailing arguments.Minimum reproduction code
https://gist.github.com/Pipeliner/bdbdb1a0813ce3fe14ae0c5a35c158ed
Steps to reproduce
No response
Expected behavior
An error message and non-zero return code.
Package version
8.2.0
NestJS version
8.2.6
Node.js version
No response
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: