update --help
This commit is contained in:
parent
f62f270e5e
commit
7b2b6c5f0a
|
@ -110,7 +110,7 @@ Core:
|
|||
|
||||
HTML:
|
||||
--author [string]
|
||||
--descriptions
|
||||
--description
|
||||
|
||||
Media:
|
||||
--image [array]
|
||||
|
@ -161,9 +161,9 @@ Options:
|
|||
--help Show help [boolean]
|
||||
|
||||
Examples:
|
||||
gmi-web --body < ~/my-capsule/index.gmi
|
||||
gmi-web --body < doc.gmi
|
||||
gmi-web --html en $(find ~/my-capsule -name '*.gmi')
|
||||
gmi-web --foreground '#000000' --background '#EEEEEE' --html en < doc.gmi
|
||||
gmi-web --foreground '#9EEBCF' --html en < doc.gmi
|
||||
gmi-web --image jpg --audio mp3 --image png --body < doc.gmi
|
||||
|
||||
See the gmi-web(1) man page for more information.
|
||||
|
|
6
cli.js
6
cli.js
|
@ -13,10 +13,10 @@ const cli = yargs(process.argv.slice(2))
|
|||
.scriptName("gmi-web")
|
||||
.command("$0 [files..]", "Convert text/gemini to text/html.", (yargs) =>
|
||||
yargs
|
||||
.example("$0 --body < ~/my-capsule/index.gmi")
|
||||
.example("$0 --body < doc.gmi")
|
||||
.example("$0 --html en $(find ~/my-capsule -name '*.gmi')")
|
||||
.example(
|
||||
"$0 --foreground '#000000' --background '#EEEEEE' --html en < doc.gmi"
|
||||
"$0 --foreground '#9EEBCF' --html en < doc.gmi"
|
||||
)
|
||||
.example("$0 --image jpg --audio mp3 --image png --body < doc.gmi")
|
||||
.epilog("See the gmi-web(1) man page for more information.")
|
||||
|
@ -82,7 +82,7 @@ const cli = yargs(process.argv.slice(2))
|
|||
});
|
||||
|
||||
const css =
|
||||
yargs(process.argv.slice(2)).exitProcess(false).argv.css || "gmi-web.css";
|
||||
yargs(process.argv.slice(2)).version(false).help(false).exitProcess(false).parse().css || "gmi-web.css";
|
||||
const CSS_VARS = CSS.rootVariables(CSS.load({ css }));
|
||||
Object.keys(CSS_VARS).forEach((key) => {
|
||||
cli.option(key, { default: CSS_VARS[key] });
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
gmi-web(1) 1.0.0
|
||||
gmi-web(1) "1.0.0"
|
||||
|
||||
# NAME
|
||||
|
||||
|
|
881
package-lock.json
generated
881
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "gmi-web-cli",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.3-rc.4",
|
||||
"description": "A bridge between Gemini and HTML",
|
||||
"main": "html.js",
|
||||
"type": "module",
|
||||
|
|
Loading…
Reference in a new issue