summaryrefslogtreecommitdiff
path: root/cli/src/args.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/args.rs')
-rw-r--r--cli/src/args.rs6
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