Don't include "update" in help output if self-update disabled (#4940)

Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
Alex Rawson 2024-09-27 03:52:52 -05:00 committed by GitHub
parent 93a5b712b1
commit ba95baa7e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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),
}