Skip to content

Commit

Permalink
Move options closer to point of use
Browse files Browse the repository at this point in the history
Co-authored-by: Danyal Aytekin <[email protected]>
  • Loading branch information
aarongoldenthal and danyalaytekin authored Mar 11, 2024
1 parent e0ca81d commit 33be0a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/pa11y-ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,14 @@ commander
)
.parse(process.argv);

// Process the Commander options
const options = commander.opts();

// Parse the args into valid paths using glob and protocolify.
const globResults = globby.sync(commander.args);
// If no files are found, assume args are URLs and pass on.
const rawUrls = globResults.length ? globResults : commander.args;
const urls = rawUrls.map(protocolify);

// Start the promise chain to actually run everything
const options = commander.opts();
Promise.resolve()
.then(() => {
// Load config based on the `--config` flag
Expand Down

0 comments on commit 33be0a7

Please sign in to comment.