File tree 4 files changed +29
-1
lines changed
packages/angular-cli/ember-cli/lib/cli
tests/e2e/tests/commands/help
4 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,16 @@ module.exports = CLI;
25
25
CLI . prototype . run = function ( environment ) {
26
26
return Promise . hash ( environment ) . then ( function ( environment ) {
27
27
var args = environment . cliArgs . slice ( ) ;
28
+
29
+ if ( args [ 0 ] === '--help' ) {
30
+ if ( args . length === 1 ) {
31
+ args [ 0 ] = 'help' ;
32
+ } else {
33
+ args . shift ( ) ;
34
+ args . push ( '--help' ) ;
35
+ }
36
+ }
37
+
28
38
var commandName = args . shift ( ) ;
29
39
var commandArgs = args ;
30
40
var helpOptions ;
Original file line number Diff line number Diff line change
1
+ import { silentNg } from '../../../utils/process' ;
2
+
3
+
4
+ export default function ( ) {
5
+ return Promise . resolve ( )
6
+ . then ( ( ) => silentNg ( '--help' , 'build' ) )
7
+ . then ( ( ) => process . chdir ( '/' ) )
8
+ . then ( ( ) => silentNg ( '--help' , 'build' ) ) ;
9
+ }
Original file line number Diff line number Diff line change
1
+ import { silentNg } from '../../../utils/process' ;
2
+
3
+
4
+ export default function ( ) {
5
+ return Promise . resolve ( )
6
+ . then ( ( ) => silentNg ( '--help' ) )
7
+ . then ( ( ) => process . chdir ( '/' ) )
8
+ . then ( ( ) => silentNg ( '--help' ) ) ;
9
+ }
Original file line number Diff line number Diff line change 1
- import { silentNg } from '../../utils/process' ;
1
+ import { silentNg } from '../../../ utils/process' ;
2
2
3
3
4
4
export default function ( ) {
You can’t perform that action at this time.
0 commit comments