Skip to content

Commit

Permalink
fix: allow skip to be defined as an array (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Dec 28, 2020
1 parent 679d64f commit c752724
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ async function main() {
serverRoot: flags.serverRoot,
};
if (flags.skip) {
opts.linksToSkip = flags.skip.split(' ').filter(x => !!x);
if (typeof flags.skip === 'string') {
opts.linksToSkip = flags.skip.split(' ').filter(x => !!x);
} else if (Array.isArray(flags.skip)) {
opts.linksToSkip = flags.skip;
}
}
const result = await checker.check(opts);
const filteredResults = result.links.filter(link => {
Expand Down

0 comments on commit c752724

Please sign in to comment.