Skip to content

CLI commands silently ignore extra command line arguments #1520

@Pipeliner

Description

@Pipeliner

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Running nest g resource aa bb cc dd ee creates aa resource in bb 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?

  • macOS
  • Windows
  • Linux

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions