From eab4c2e63070ca90d7367959b1d3df9c8f2d4027 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 1 Oct 2018 20:42:10 +0200 Subject: [PATCH] fix(@angular/cli): `ng update` remove duplicate `dryRun` in help Closes #12423 --- packages/angular/cli/commands/update-impl.ts | 2 +- packages/angular/cli/commands/update.json | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/angular/cli/commands/update-impl.ts b/packages/angular/cli/commands/update-impl.ts index 38f1d7fb448a..e5f575db4dfb 100644 --- a/packages/angular/cli/commands/update-impl.ts +++ b/packages/angular/cli/commands/update-impl.ts @@ -54,7 +54,7 @@ export class UpdateCommand extends SchematicCommand { collectionName: this.collectionName, schematicName: this.schematicName, schematicOptions: options['--'], - dryRun: options.dryRun, + dryRun: !!options.dryRun, force: false, showNothingDone: false, }); diff --git a/packages/angular/cli/commands/update.json b/packages/angular/cli/commands/update.json index 9c53d613de6d..964f1e05d2ef 100644 --- a/packages/angular/cli/commands/update.json +++ b/packages/angular/cli/commands/update.json @@ -22,14 +22,6 @@ "$default": { "$source": "argv" } - }, - "dryRun": { - "type": "boolean", - "default": false, - "aliases": [ - "d" - ], - "description": "Run through without making any changes." } }, "required": [