summaryrefslogtreecommitdiff
path: root/crates/typst-cli/src
diff options
context:
space:
mode:
authorAlex Rawson <ajzecrom@gmail.com>2024-09-27 03:52:52 -0500
committerGitHub <noreply@github.com>2024-09-27 08:52:52 +0000
commitba95baa7e16d9d48cd0c60e3673fc6be7dcb3dc6 (patch)
treeb62d4422b716fe2584cb07c152a4e78b2d10f0cb /crates/typst-cli/src
parent93a5b712b1919859fa526e989477db2e7256689f (diff)
Don't include "update" in help output if self-update disabled (#4940)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'crates/typst-cli/src')
-rw-r--r--crates/typst-cli/src/args.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-cli/src/args.rs b/crates/typst-cli/src/args.rs
index 49761d8f..d1cbefae 100644
--- a/crates/typst-cli/src/args.rs
+++ b/crates/typst-cli/src/args.rs
@@ -60,7 +60,7 @@ pub enum Command {
Fonts(FontsCommand),
/// Self update the Typst CLI
- #[cfg_attr(not(feature = "self-update"), doc = " (disabled)")]
+ #[cfg_attr(not(feature = "self-update"), clap(hide = true))]
Update(UpdateCommand),
}