Skip to content

Commit

Permalink
docs: update defaults in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
redmer committed Mar 27, 2024
1 parent 088216a commit 16d8466
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,19 @@ async function cli() {
})
.option("include-binary-values", {
type: "boolean",
desc: "Output binary values",
desc: "Output binary values (xsd:base64Binary)",
})
.option("base-iri", { type: "string", desc: "Base IRI" })
.option("model", {
desc: "Data meta model",
})
.choices("model", ModuleRegistry.knownModels(Registry.Generic))
.option("geosparql", {
desc: "Output GeoSPARQL",
desc: "Output GeoSPARQL (default: wkt)",
type: "string",
array: true,
})
.choices("geosparql", ModuleRegistry.knownModels(Registry.Geometry))
.default("geosparql", ["wkt"])
.strict();
const argv = await options.parse();

Expand Down Expand Up @@ -117,8 +116,9 @@ async function cli() {
argv.output?.endsWith(".gz") ?? argv.format?.endsWith(".gz") ?? false;
const model: string =
argv.model ?? ModuleRegistry.knownModels(Registry.Generic)[0];
const geoSPARQLModels: string[] =
argv.geosparql ?? ModuleRegistry.knownModels(Registry.Geometry);
const geoSPARQLModels: string[] = Array.isArray(argv.geosparql)
? argv.geosparql
: ["wkt"];
const DF = new DataFactory();

const parser = new GeoPackageParser(input, {
Expand Down

0 comments on commit 16d8466

Please sign in to comment.