Skip to content

Commit b188585

Browse files
alan-agius4clydin
authored andcommitted
docs(@angular/cli): improve several ng update option descriptions
1 parent a49cdfb commit b188585

File tree

1 file changed

+6
-3
lines changed
  • packages/angular/cli/src/commands/update

1 file changed

+6
-3
lines changed

packages/angular/cli/src/commands/update/cli.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,25 @@ export class UpdateCommandModule extends CommandModule<UpdateCommandArgs> {
5959
type: 'boolean',
6060
})
6161
.option('name', {
62-
description: 'The name of the migration to run.',
62+
description:
63+
'The name of the migration to run. ' +
64+
`Only available with a single package being updated, and only with 'migrate-only' option.`,
6365
type: 'string',
6466
implies: ['migrate-only'],
6567
conflicts: ['to', 'from'],
6668
})
6769
.option('from', {
6870
description:
69-
'Version from which to migrate from. Only available with a single package being updated, and only on migration only.',
71+
'Version from which to migrate from. ' +
72+
`Only available with a single package being updated, and only with 'migrate-only'.`,
7073
type: 'string',
7174
implies: ['to', 'migrate-only'],
7275
conflicts: ['name'],
7376
})
7477
.option('to', {
7578
describe:
7679
'Version up to which to apply migrations. Only available with a single package being updated, ' +
77-
'and only on migrations only. Requires from to be specified. Default to the installed version detected.',
80+
`and only with 'migrate-only' option. Requires 'from' to be specified. Default to the installed version detected.`,
7881
type: 'string',
7982
implies: ['from', 'migrate-only'],
8083
conflicts: ['name'],

0 commit comments

Comments
 (0)