Skip to content

Conversation

@clydin
Copy link
Member

@clydin clydin commented Dec 12, 2025

This commit migrates the command-line argument parsing in the @angular-devkit/schematics-cli package from the external yargs-parser library to Node.js's native node:util.parseArgs API.

The updated parsing logic includes explicit definition of known CLI options, correct handling of camel-casing for schematic options, processing of --no- prefixes, and support for collecting multiple values for a single option.

… node:util.parseArgs

This commit migrates the command-line argument parsing in the `@angular-devkit/schematics-cli` package from the external `yargs-parser` library to Node.js's native `node:util.parseArgs` API.

The updated parsing logic includes explicit definition of known CLI options, correct handling of camel-casing for schematic options, processing of `--no-` prefixes, and support for collecting multiple values for a single option.
@clydin clydin force-pushed the schematics/cli-parse-args branch from 9de53da to 3cb87e2 Compare December 12, 2025 21:03
@clydin clydin added the target: minor This PR is targeted for the next minor release label Dec 12, 2025
@clydin clydin marked this pull request as ready for review December 13, 2025 21:52
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Dec 15, 2025
@clydin clydin merged commit eb48d71 into angular:main Dec 15, 2025
37 checks passed
@clydin
Copy link
Member Author

clydin commented Dec 15, 2025

This PR was merged into the repository. The changes were merged into the following branches:

@clydin clydin deleted the schematics/cli-parse-args branch December 15, 2025 13:48
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular-devkit/schematics-cli target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants