Skip to content

Commit

Permalink
fix(@angular/cli): remove --to option from being required when usin…
Browse files Browse the repository at this point in the history
…g `--from` in `ng update`

This change remove the requirement for the `to` option to be provided when using the `from` option in conjunction with `migrate-only`.

Closes #24510
  • Loading branch information
alan-agius4 authored and angular-robot[bot] committed Jan 13, 2023
1 parent d05eb00 commit 697df4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular/cli/src/commands/update/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class UpdateCommandModule extends CommandModule<UpdateCommandArgs> {
'Version from which to migrate from. ' +
`Only available with a single package being updated, and only with 'migrate-only'.`,
type: 'string',
implies: ['to', 'migrate-only'],
implies: ['migrate-only'],
conflicts: ['name'],
})
.option('to', {
Expand Down

0 comments on commit 697df4f

Please sign in to comment.