2021-01-28 06:16:46 +00:00
|
|
|
#!/usr/bin/env node
|
|
|
|
require("yargs")
|
|
|
|
.scriptName("gmi-web")
|
|
|
|
.command(
|
2021-01-28 17:56:02 +00:00
|
|
|
"$0 [--out path] [--no-css] [files]",
|
|
|
|
"A bridge between Gemini and HTML. See gmi-web(1) for more details.",
|
|
|
|
(yargs) =>
|
|
|
|
yargs
|
|
|
|
.positional("files", {
|
|
|
|
describe: ".gmi files to convert to .html",
|
|
|
|
})
|
|
|
|
.required("files", true)
|
|
|
|
.option("out", {
|
|
|
|
type: "string",
|
|
|
|
description:
|
|
|
|
"Write .html files to a seperate directory located at path.",
|
|
|
|
})
|
|
|
|
.option("no-css", {
|
|
|
|
type: "boolean",
|
|
|
|
description: "Do not include gmi.css in the rendered HTML markup.",
|
|
|
|
}),
|
2021-01-28 06:16:46 +00:00
|
|
|
(argv) => {
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
)
|
|
|
|
.help().argv;
|