@@ -24,6 +24,11 @@ const argv = require('yargs')
2424 requiresArg : true ,
2525 nargs : 1 ,
2626 } ,
27+ quiet : {
28+ alias : 'q' ,
29+ describe : 'Suppress all console output except errors' ,
30+ boolean : true ,
31+ } ,
2732 'out-file' : {
2833 alias : 'o' ,
2934 describe : 'Concatenate all JSON files into one to the specified file' ,
@@ -38,6 +43,7 @@ const argv = require('yargs')
3843 } ,
3944 verbose : {
4045 describe : 'Log everything' ,
46+ boolean : true ,
4147 } ,
4248 extension : {
4349 alias : 'x' ,
@@ -56,7 +62,7 @@ const argv = require('yargs')
5662 'skip-props-without-doc' : {
5763 describe : 'Skip props without doc' ,
5864 group : 'React Docgen Typescript Options:' ,
59- default : true ,
65+ default : false ,
6066 boolean : true ,
6167 } ,
6268 'skip-props-with-name' : {
@@ -65,10 +71,20 @@ const argv = require('yargs')
6571 array : 'skipPropsWithName' ,
6672 } ,
6773 'skip-components-with-name' : {
68- describe : 'Skip the ' ,
74+ describe : 'Skip the components with the specified name ' ,
6975 group : 'React Docgen Typescript Options:' ,
7076 array : 'skipComponentsWithName' ,
7177 } ,
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+ } ,
7288 'extract-literal-values-from-enum' : {
7389 describe : 'Convert enums and unions to docgen enum format' ,
7490 group : 'React Docgen Typescript Options:' ,
0 commit comments