From 75d2d764b74763ee0acfd690ec0fd64360402087 Mon Sep 17 00:00:00 2001 From: wrmr Date: Wed, 21 May 2025 20:42:12 -0500 Subject: add -H -F / --header --footer options --- main.c | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 27746d6..7830adf 100644 --- a/main.c +++ b/main.c @@ -24,6 +24,7 @@ typedef struct { Str title; int hvarc; Str docroot; + Str header_file, footer_file; } Options; Options opts = { 0 }; @@ -550,12 +551,13 @@ int hvar_calc(Str param, Str *name, Str *val, Str filename) { void usage(const char *cmd) { fprintf(stderr, "usage: %s -?\n" - " %s [-silq] [-L LANG] [-c FILE] [-t TITLE] [-h NAME:ARG1[,ARG2,ARG3...]] [FILES...]\n" + " %s [OPTIONS] [FILES...]\n" "\n" " -? --help show this help text\n" " -s --standalone prefix with html metadata\n" " -h --hvar define a css variable (--name) with a random value,\n" " selected by a hash of the document's title\n" + " (format: NAME:ARG1[,ARG2,ARG3...])\n" " -c --css embed the given file within a