@@ -24,6 +24,11 @@ const argv = require('yargs')
24
24
requiresArg : true ,
25
25
nargs : 1 ,
26
26
} ,
27
+ quiet : {
28
+ alias : 'q' ,
29
+ describe : 'Suppress all console output except errors' ,
30
+ boolean : true ,
31
+ } ,
27
32
'out-file' : {
28
33
alias : 'o' ,
29
34
describe : 'Concatenate all JSON files into one to the specified file' ,
@@ -38,6 +43,7 @@ const argv = require('yargs')
38
43
} ,
39
44
verbose : {
40
45
describe : 'Log everything' ,
46
+ boolean : true ,
41
47
} ,
42
48
extension : {
43
49
alias : 'x' ,
@@ -56,7 +62,7 @@ const argv = require('yargs')
56
62
'skip-props-without-doc' : {
57
63
describe : 'Skip props without doc' ,
58
64
group : 'React Docgen Typescript Options:' ,
59
- default : true ,
65
+ default : false ,
60
66
boolean : true ,
61
67
} ,
62
68
'skip-props-with-name' : {
@@ -65,10 +71,20 @@ const argv = require('yargs')
65
71
array : 'skipPropsWithName' ,
66
72
} ,
67
73
'skip-components-with-name' : {
68
- describe : 'Skip the ' ,
74
+ describe : 'Skip the components with the specified name ' ,
69
75
group : 'React Docgen Typescript Options:' ,
70
76
array : 'skipComponentsWithName' ,
71
77
} ,
78
+ 'extract-values-from-union' : {
79
+ group : 'React Docgen Typescript Options:' ,
80
+ describe : 'Convert unions to docgen enum format' ,
81
+ boolean : true ,
82
+ } ,
83
+ 'remove-undefined-from-optional' : {
84
+ group : 'React Docgen Typescript Options:' ,
85
+ describe : 'If set, types with optional will not display "| undefined" in the type' ,
86
+ boolean : true ,
87
+ } ,
72
88
'extract-literal-values-from-enum' : {
73
89
describe : 'Convert enums and unions to docgen enum format' ,
74
90
group : 'React Docgen Typescript Options:' ,
0 commit comments