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

(cherry picked from commit 697df4f)
  • Loading branch information
alan-agius4 committed Jan 13, 2023
1 parent 9fa5f2c commit 5d9fd78
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 5d9fd78

Please sign in to comment.