File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
packages/@angular/cli/commands
tests/e2e/tests/commands/help Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ const NewCommand = Command.extend({
39
39
type : Boolean ,
40
40
default : false ,
41
41
aliases : [ 'lc' ] ,
42
- description : 'Automatically link the `@angular/cli` package.'
42
+ description : 'Automatically link the `@angular/cli` package.' ,
43
+ hidden : true
43
44
} ,
44
45
{
45
46
name : 'skip-install' ,
Original file line number Diff line number Diff line change @@ -13,5 +13,14 @@ export default function() {
13
13
in help output.
14
14
` ) ;
15
15
}
16
- } ) ;
16
+ } )
17
+ . then ( ( ) => silentNg ( '--help' , 'new' ) )
18
+ . then ( ( { stdout } ) => {
19
+ if ( stdout . match ( / - - l i n k - c l i / ) ) {
20
+ throw new Error ( oneLine `
21
+ Expected to not match "--link-cli"
22
+ in help output.
23
+ ` ) ;
24
+ }
25
+ } )
17
26
}
You can’t perform that action at this time.
0 commit comments