@@ -16,6 +16,10 @@ function collect(val, memo) {
16
16
return memo ;
17
17
}
18
18
19
+ var defaultExtensions = [ 'js' , 'jsx' ] ;
20
+ var defaultExclude = [ ] ;
21
+ var defaultIgnore = [ 'node_modules' , '__tests__' , '__mocks__' ] ;
22
+
19
23
argv
20
24
. usage ( '[path...] [options]' )
21
25
. description (
29
33
'pretty print JSON' )
30
34
. option (
31
35
'-x, --extension <extension>' ,
32
- 'File extensions to consider. Repeat to define multiple extensions. Default: js, jsx' ,
36
+ 'File extensions to consider. Repeat to define multiple extensions. Default: ' + JSON . stringify ( defaultExtensions ) ,
33
37
collect ,
34
38
[ 'js' , 'jsx' ] )
35
39
. option (
36
40
'-e, --exclude <path>' ,
37
- 'Filename pattern to exclude.' ,
41
+ 'Filename pattern to exclude. Default: ' + JSON . stringify ( defaultExclude ) ,
38
42
collect ,
39
43
[ ] )
40
44
. option (
41
45
'-i, --ignore <path>' ,
42
- 'Folders to ignore' ,
46
+ 'Folders to ignore. Default: ' + JSON . stringify ( defaultIgnore ) ,
43
47
collect ,
44
48
[ 'node_modules' , '__tests__' , '__mocks__' ] )
45
49
. option (
46
50
'--resolver <resolver>' ,
47
- 'Resolver name (findAllComponentDefinitions, findExportedComponentDefinition) or path to a module that exports a resolver.' ,
51
+ 'Resolver name (findAllComponentDefinitions, findExportedComponentDefinition) or path to a module that exports ' +
52
+ 'a resolver. Default: findExportedComponentDefinition' ,
48
53
'findExportedComponentDefinition' )
49
54
. arguments ( '<path>' ) ;
50
55
0 commit comments