@@ -16,7 +16,8 @@ program
16
16
. option ( '-r, --raw' , 'output "raw" comments, leaving the markdown intact' )
17
17
. option ( '-a, --api' , 'output markdown readme documentation' )
18
18
. option ( '-s, --skipPrefixes [prefixes]' , 'skip comments prefixed with these prefixes, separated by commas' )
19
- . option ( '-d, --debug' , 'output parsed comments for debugging' ) ;
19
+ . option ( '-d, --debug' , 'output parsed comments for debugging' )
20
+ . option ( '-S, --skipSingleStar' , 'set to false to ignore `/* ... */` comments' ) ;
20
21
21
22
// examples
22
23
@@ -41,7 +42,7 @@ var buf = '';
41
42
process . stdin . setEncoding ( 'utf8' ) ;
42
43
process . stdin . on ( 'data' , function ( chunk ) { buf += chunk ; } ) ;
43
44
process . stdin . on ( 'end' , function ( ) {
44
- var obj = dox . parseComments ( buf , { raw : program . raw || program . api , skipPrefixes : program . skipPrefix && program . skipPrefix . split ( ',' ) } ) ;
45
+ var obj = dox . parseComments ( buf , { raw : program . raw || program . api , skipPrefixes : program . skipPrefix && program . skipPrefix . split ( ',' ) , skipSingleStar : ! ! program . skipSingleStar } ) ;
45
46
if ( program . debug ) {
46
47
process . stdout . write ( util . inspect ( obj , false , Infinity , true ) + '\n' ) ;
47
48
} else if ( program . api ) {
0 commit comments