diff options
author | June McEnroe <june@causal.agency> | 2020-12-29 00:55:47 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-12-29 00:55:47 -0500 |
commit | cc1cb6c36ecb93e7b9b458f4ea24d1f00480503b (patch) | |
tree | a52adc39db865db26dba4d640723376b62ec0b83 /bin/hilex/hilex.c | |
parent | Add hilex manual page (diff) | |
download | src-cc1cb6c36ecb93e7b9b458f4ea24d1f00480503b.tar.gz src-cc1cb6c36ecb93e7b9b458f4ea24d1f00480503b.zip |
Add hilex HTML output
Diffstat (limited to 'bin/hilex/hilex.c')
-rw-r--r-- | bin/hilex/hilex.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/hilex/hilex.c b/bin/hilex/hilex.c index b90efab1..d99b14bb 100644 --- a/bin/hilex/hilex.c +++ b/bin/hilex/hilex.c @@ -63,6 +63,7 @@ static const struct { } Formatters[] = { { &FormatANSI, "ansi" }, { &FormatDebug, "debug" }, + { &FormatHTML, "html" }, { &FormatIRC, "irc" }, }; @@ -135,6 +136,7 @@ int main(int argc, char *argv[]) { name = path; } } + if (!opts[Title]) opts[Title] = name; if (!lexer) lexer = matchLexer(name); if (!lexer && text) lexer = &LexText; if (!lexer) errx(EX_USAGE, "cannot infer lexer for %s", name); |