File tree 1 file changed +7
-1
lines changed
packages/angular-cli/commands
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ const HelpCommand = Command.extend({
18
18
19
19
availableOptions : [ ] ,
20
20
21
+ anonymousOptions : [ 'command-name (Default: all)' ] ,
22
+
21
23
run : function ( commandOptions : any , rawArgs : any ) {
22
24
let commandFiles = fs . readdirSync ( __dirname )
23
25
// Remove files that are not JavaScript or Typescript
@@ -38,6 +40,10 @@ const HelpCommand = Command.extend({
38
40
return acc ;
39
41
} , { } ) ;
40
42
43
+ if ( rawArgs . indexOf ( 'all' ) !== - 1 ) {
44
+ rawArgs = [ ] ; // just act as if command not specified
45
+ }
46
+
41
47
commandFiles . forEach ( cmd => {
42
48
let Command = lookupCommand ( commandMap , cmd ) ;
43
49
@@ -50,7 +56,7 @@ const HelpCommand = Command.extend({
50
56
51
57
if ( rawArgs . length > 0 ) {
52
58
if ( cmd === rawArgs [ 0 ] ) {
53
- this . ui . writeLine ( command . printDetailedHelp ( commandOptions ) ) ;
59
+ this . ui . writeLine ( command . printBasicHelp ( commandOptions ) ) ;
54
60
}
55
61
} else {
56
62
this . ui . writeLine ( command . printBasicHelp ( commandOptions ) ) ;
You can’t perform that action at this time.
0 commit comments