From b383f03f94385cbd044a0fde22d96025a4373a36 Mon Sep 17 00:00:00 2001 From: Talon Poole Date: Fri, 29 Jan 2021 23:59:12 +0000 Subject: [PATCH] RC --- cli.js | 3 ++- gmi-web.1 | 30 +++++++++++++++++++++++++++++- gmi-web.1.scd | 24 +++++++++++++++++++++++- package.json | 2 +- tokenize.js | 22 ++++++++++------------ 5 files changed, 65 insertions(+), 16 deletions(-) diff --git a/cli.js b/cli.js index 636daa4..4d1c885 100755 --- a/cli.js +++ b/cli.js @@ -30,8 +30,9 @@ const GMI_CSS_VARS = [ require("yargs") .scriptName("gmi-web") + .config() .command( - "$0 [--lang] [files..]", + "$0 [files..]", "Convert .gmi to .html. See gmi-web(1) for more details.", (yargs) => yargs diff --git a/gmi-web.1 b/gmi-web.1 index 59da25c..8adb342 100644 --- a/gmi-web.1 +++ b/gmi-web.1 @@ -35,6 +35,12 @@ name. \fBgmi-web\fR --lang "en" --foreground "#FFFFF" --background "#00000" $(find . -name *.gmi) .P .RE +\fB--config\fR [\fIJSON\fR] +.RS 4 +All the options documented here and by \fB--help\fR may be captured in a .json +file and passed to \fB--config\fR. +.P +.RE \fB--images\fR \fB--audio\fR \fB--video\fR .RS 4 Include the respective media inline. @@ -42,7 +48,7 @@ Include the respective media inline. .RE \fB--no-css\fR .RS 4 -Use only the bare-minimum