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({
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' ,
Original file line number Diff line number Diff 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 ( / - - 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+ } )
1726}
You can’t perform that action at this time.
0 commit comments