From ba95baa7e16d9d48cd0c60e3673fc6be7dcb3dc6 Mon Sep 17 00:00:00 2001 From: Alex Rawson Date: Fri, 27 Sep 2024 03:52:52 -0500 Subject: [PATCH] Don't include "update" in help output if self-update disabled (#4940) Co-authored-by: Laurenz --- crates/typst-cli/src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-cli/src/args.rs b/crates/typst-cli/src/args.rs index 49761d8f2..d1cbefae1 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), }