mirror of
https://github.com/typst/typst
synced 2025-05-15 09:35:28 +08:00
Don't include "update" in help output if self-update disabled (#4940)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
parent
93a5b712b1
commit
ba95baa7e1
@ -60,7 +60,7 @@ pub enum Command {
|
|||||||
Fonts(FontsCommand),
|
Fonts(FontsCommand),
|
||||||
|
|
||||||
/// Self update the Typst CLI
|
/// Self update the Typst CLI
|
||||||
#[cfg_attr(not(feature = "self-update"), doc = " (disabled)")]
|
#[cfg_attr(not(feature = "self-update"), clap(hide = true))]
|
||||||
Update(UpdateCommand),
|
Update(UpdateCommand),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user