@@ -103,7 +103,7 @@ const cli = meow(
103103 config : { type : 'string' } ,
104104 concurrency : { type : 'number' } ,
105105 recurse : { type : 'boolean' , alias : 'r' } ,
106- skip : { type : 'string' , alias : 's' } ,
106+ skip : { type : 'string' , alias : 's' , isMultiple : true } ,
107107 format : { type : 'string' , alias : 'f' } ,
108108 silent : { type : 'boolean' } ,
109109 timeout : { type : 'number' } ,
@@ -184,7 +184,14 @@ async function main() {
184184 if ( typeof flags . skip === 'string' ) {
185185 opts . linksToSkip = flags . skip . split ( / [ \s , ] + / ) . filter ( x => ! ! x ) ;
186186 } else if ( Array . isArray ( flags . skip ) ) {
187- opts . linksToSkip = flags . skip ;
187+ // with `isMultiple` enabled in meow, a comma delimeted list will still
188+ // be passed as an array, but with a single element that still needs to
189+ // be split.
190+ opts . linksToSkip = [ ] ;
191+ for ( const skip of flags . skip ) {
192+ const rules = skip . split ( / [ \s , ] + / ) . filter ( x => ! ! x ) ;
193+ opts . linksToSkip . push ( ...rules ) ;
194+ }
188195 }
189196 }
190197 if ( flags . urlRewriteSearch && flags . urlRewriteReplace ) {
0 commit comments