diff options
| author | Lino Le Van <11367844+lino-levan@users.noreply.github.com> | 2023-05-23 03:20:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-23 12:20:12 +0200 |
| commit | 5400570efa13d24519e321474f41ebda5cc4cbc7 (patch) | |
| tree | 334402245bf9be4d38f95fe2827ec8a9ee13d9a7 /cli/src/args.rs | |
| parent | 5dbc15ef0c48cb024205ac84f295fdffef985374 (diff) | |
feat(cli): export as png (#1159)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'cli/src/args.rs')
| -rw-r--r-- | cli/src/args.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/src/args.rs b/cli/src/args.rs index 7eb4f4e2..fbd5ec2d 100644 --- a/cli/src/args.rs +++ b/cli/src/args.rs @@ -62,7 +62,7 @@ pub struct CompileCommand { /// Path to input Typst file pub input: PathBuf, - /// Path to output PDF file + /// Path to output PDF file or PNG file(s) pub output: Option<PathBuf>, /// Opens the output file after compilation using the default PDF viewer @@ -72,6 +72,10 @@ pub struct CompileCommand { /// Produces a flamegraph of the compilation process #[arg(long = "flamegraph", value_name = "OUTPUT_SVG")] pub flamegraph: Option<Option<PathBuf>>, + + /// The PPI to use if exported as PNG + #[arg(long = "ppi")] + pub ppi: Option<f32>, } /// List all discovered fonts in system and custom font paths |
