Skip to content

Commit

Permalink
cli adjusted
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Jan 11, 2024
1 parent d8311d6 commit 114be90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/oai-pmh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ program
.action((baseUrl, _options) =>
wrapAsync(async () => {
const options = pick(_options, "identifier");
const oaiPmh = new OaiPmh(baseUrl);
const oaiPmh = new OaiPmh(baseUrl as URL);
const result = await oaiPmh.listMetadataFormats(options);
printJson(result);
}),
Expand All @@ -84,7 +84,7 @@ program
.action((baseUrl, _options) =>
wrapAsync(async () => {
const options = pick(_options, "metadataPrefix", "from", "until", "set");
const oaiPmh = new OaiPmh(baseUrl);
const oaiPmh = new OaiPmh(baseUrl as URL);
await printList(oaiPmh.listRecords(options));
}),
);
Expand Down

0 comments on commit 114be90

Please sign in to comment.