diff options
| author | toddlerer <74579078+toddlerer@users.noreply.github.com> | 2023-10-22 20:44:36 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-22 13:44:36 +0200 |
| commit | b4e8a2afe3a8b351bcadc02235b8fed1a82c213c (patch) | |
| tree | 96d091e8abf76cd682510fd5281a6024edc57d5a /README.md | |
| parent | cf9ca6cb594e27237637bf15b00f9df8c5e11999 (diff) | |
Fixed usage of command options in README (#2445)
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -151,15 +151,24 @@ Typst further allows you to add custom font paths for your project and list all of the fonts it discovered: ```sh # Adds additional directories to search for fonts. -typst --font-path path/to/fonts compile file.typ +typst compile --font-path path/to/fonts file.typ # Lists all of the discovered fonts in the system and the given directory. -typst --font-path path/to/fonts fonts +typst fonts --font-path path/to/fonts # Or via environment variable (Linux syntax). TYPST_FONT_PATHS=path/to/fonts typst fonts ``` +For other CLI subcommands and options, see below: +```sh +# Prints available subcommands and options. +typst help + +# Prints detailed usage of a subcommand. +typst help watch +``` + If you prefer an integrated IDE-like experience with autocompletion and instant preview, you can also check out the [Typst web app][app], which is currently in public beta. |
