Skip to content

Commit 80207ba

Browse files
Charles Lydingfilipesilva
Charles Lyding
authored andcommitted
refactor(@angular/cli): hide link cli option
1 parent 169d327 commit 80207ba

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

packages/@angular/cli/commands/new.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ const NewCommand = Command.extend({
3939
type: Boolean,
4040
default: false,
4141
aliases: ['lc'],
42-
description: 'Automatically link the `@angular/cli` package.'
42+
description: 'Automatically link the `@angular/cli` package.',
43+
hidden: true
4344
},
4445
{
4546
name: 'skip-install',

tests/e2e/tests/commands/help/help-hidden.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,14 @@ export default function() {
1313
in help output.
1414
`);
1515
}
16-
});
16+
})
17+
.then(() => silentNg('--help', 'new'))
18+
.then(({ stdout }) => {
19+
if (stdout.match(/--link-cli/)) {
20+
throw new Error(oneLine`
21+
Expected to not match "--link-cli"
22+
in help output.
23+
`);
24+
}
25+
})
1726
}

0 commit comments

Comments
 (0)