summaryrefslogtreecommitdiff
path: root/crates/typst-cli/src/args.rs
diff options
context:
space:
mode:
authorMatthew Toohey <contact@mtoohey.com>2024-04-09 07:50:41 -0400
committerGitHub <noreply@github.com>2024-04-09 11:50:41 +0000
commit72dd79210602ecc799726fc096b078afbb47f299 (patch)
treea48a5c7ce8aa99048e40b3138b5138a448d76e1a /crates/typst-cli/src/args.rs
parent847b710480d388b890f13c2c0a20c4e8b7e16cc2 (diff)
Add --make-deps CLI argument (#2877) (#3890)
Diffstat (limited to 'crates/typst-cli/src/args.rs')
-rw-r--r--crates/typst-cli/src/args.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/typst-cli/src/args.rs b/crates/typst-cli/src/args.rs
index 689785df..bed5f49a 100644
--- a/crates/typst-cli/src/args.rs
+++ b/crates/typst-cli/src/args.rs
@@ -72,6 +72,10 @@ pub struct CompileCommand {
#[clap(required_if_eq("input", "-"), value_parser = ValueParser::new(output_value_parser))]
pub output: Option<Output>,
+ /// Output a Makefile rule describing the current compilation
+ #[clap(long = "make-deps", value_name = "PATH")]
+ pub make_deps: Option<PathBuf>,
+
/// The format of the output file, inferred from the extension by default
#[arg(long = "format", short = 'f')]
pub format: Option<OutputFormat>,