summaryrefslogtreecommitdiff
path: root/crates/typst-cli/src/args.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-cli/src/args.rs')
-rw-r--r--crates/typst-cli/src/args.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/crates/typst-cli/src/args.rs b/crates/typst-cli/src/args.rs
index 33fcb9fd..ead93236 100644
--- a/crates/typst-cli/src/args.rs
+++ b/crates/typst-cli/src/args.rs
@@ -97,6 +97,21 @@ pub struct WatchCommand {
/// Arguments for compilation.
#[clap(flatten)]
pub args: CompileArgs,
+
+ /// Disables the built-in HTTP server for HTML export.
+ #[clap(long)]
+ pub no_serve: bool,
+
+ /// Disables the injected live reload script for HTML export. The HTML that
+ /// is written to disk isn't affected either way.
+ #[clap(long)]
+ pub no_reload: bool,
+
+ /// The port where HTML is served.
+ ///
+ /// Defaults to the first free port in the range 3000-3005.
+ #[clap(long)]
+ pub port: Option<u16>,
}
/// Initializes a new project from a template.