Skip to content

fix(cli): fix treating path args as flags#3467

Open
QusaiAlbonni wants to merge 1 commit into
nestjs:masterfrom
QusaiAlbonni:fix/remaining-flags-skip-non-flag-args
Open

fix(cli): fix treating path args as flags#3467
QusaiAlbonni wants to merge 1 commit into
nestjs:masterfrom
QusaiAlbonni:fix/remaining-flags-skip-non-flag-args

Conversation

@QusaiAlbonni

@QusaiAlbonni QusaiAlbonni commented Jun 12, 2026

Copy link
Copy Markdown

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

Issue Number: #3466

What is the new behavior?

getRemainingFlags now returns an empty array for when no flags exist, also when values are checked for if they already exist as an option in commander it will now only check flags rather than everything which falsly checks paths and values leading to errors like the one in the issue

Does this PR introduce a breaking change?

  • No

Other information

@QusaiAlbonni QusaiAlbonni force-pushed the fix/remaining-flags-skip-non-flag-args branch from 63d64fc to 04d2e30 Compare June 13, 2026 07:19
@kamilmysliwiec

Copy link
Copy Markdown
Member

can you create a second PR with the same set of changes targeting v12 branch as well? #3280 ideally, we would have an e2e test for this in that branch too

@QusaiAlbonni

Copy link
Copy Markdown
Author

#3468

@QusaiAlbonni QusaiAlbonni force-pushed the fix/remaining-flags-skip-non-flag-args branch from 04d2e30 to 010fdec Compare June 15, 2026 13:48
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 this pull request may close these issues.

2 participants