We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b87fc1 commit 66f445bCopy full SHA for 66f445b
2 files changed
packages/cleanclone/src/config.ts
@@ -76,7 +76,7 @@ export function argsToConfig(): CrawlConfig {
76
.option("url", {
77
type: "string",
78
demandOption: true,
79
- desc: "Page URL to crawl",
+ desc: "Page URL(s) to crawl. Can be one or more URLs separated by commas.",
80
})
81
.option("out-dir", {
82
alias: "o",
packages/cleanclone/src/crawler.ts
@@ -106,7 +106,10 @@ export class Crawler extends EventEmitter {
106
await this.launchBrowser();
107
const pageURLs = this.cfg.recursive
108
? await this.scanSitePages(this.cfg.browserScan)
109
- : [this.cfg.url];
+ : this.cfg.url
110
+ .split(",")
111
+ .map((u) => u.trim())
112
+ .filter((u) => u);
113
114
const succURLs: string[] = [];
115
let failedCount = 0;
0 commit comments