Arguments

This commit is contained in:
2026-07-16 09:59:47 +02:00
parent 69e5c62382
commit 080e51526f
7 changed files with 182 additions and 49 deletions
+25
View File
@@ -18,6 +18,31 @@ TypoML reads from stdin and outputs HTML to stdout:
cat input.tlm | ./TypoML > output.html
```
It can also read one or more (added in the order of command line arguments) `.tlm` files:
```
./TypoML input.tlm > output.html
```
Run `./TypoML --help` for the full list of options.
!! Options
- `--title <text>` - Set the HTML document `<title>` (default: `TypoML`)
- `--plain` - Don't wrap the output in `<html>`, `<head>`, `<body>` and `<style>` tags
- `--no-js` - Don't include the JavaScript variable proxy
- `--no-wrapper` - Shortcut for `--plain` and `--no-js` at once
- `--print-tree` - Print the token tree instead of HTML
- `-h`, `--help` - Show the help text and exit
Examples:
```
./TypoML doc.tlm --title "TITLE" > doc.html
./TypoML doc.tlm --no-wrapper > fragment.html
./TypoML doc.tlm --print-tree
```
---
!! Syntax