docs(update): add docs for update command

This commit is contained in:
RafayAhmad7548 2026-09-03 17:11:28 +05:00
parent f6d47e4b4d
commit 91b20693fd
Signed by: RafayAhmad
SSH key fingerprint: SHA256:WURX8viobA1uawb4dWM3LqYrY+XPcZcXhAXAlrYdhtE

View file

@ -76,16 +76,21 @@ enum Commands {
mods: Vec<String>, mods: Vec<String>,
}, },
/// Update minecraft/mods/loader for project in current directory
Update { Update {
/// Only update mods to latest version for current minecraft version
#[arg(long, conflicts_with_all = ["loader_only", "loader_version"])] #[arg(long, conflicts_with_all = ["loader_only", "loader_version"])]
mods_only: bool, mods_only: bool,
/// Only update mod loader to latest version
#[arg(long, conflicts_with_all = ["mods_only", "version"])] #[arg(long, conflicts_with_all = ["mods_only", "version"])]
loader_only: bool, loader_only: bool,
/// Specify mod loader version to update to
#[arg(long, conflicts_with = "mods_only")] #[arg(long, conflicts_with = "mods_only")]
loader_version: Option<String>, loader_version: Option<String>,
/// Specify minecraft version to update to
#[arg(long, conflicts_with = "loader_only")] #[arg(long, conflicts_with = "loader_only")]
version: Option<String>, version: Option<String>,
}, },