fix clap command name & add notice if zip feature is disabled

This commit is contained in:
Moritz Hölting 2025-03-05 17:06:29 +01:00
parent c041d51c59
commit 7d5e126267
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ static VERSION: &str = formatcp!(
); );
#[derive(Debug, Clone, Parser)] #[derive(Debug, Clone, Parser)]
#[command(version, about, long_about = None, disable_version_flag = false, version = VERSION)] #[command(name = "shulkerscript", about, version = VERSION, long_about = None, disable_version_flag = false)]
pub struct Args { pub struct Args {
#[command(subcommand)] #[command(subcommand)]
cmd: Command, cmd: Command,

View File

@ -37,7 +37,7 @@ pub struct BuildArgs {
#[arg(short, long)] #[arg(short, long)]
pub assets: Option<PathBuf>, pub assets: Option<PathBuf>,
/// Package the project to a zip file. /// Package the project to a zip file.
#[arg(short, long)] #[cfg_attr(not(feature = "zip"), doc = "Disabled because not compiled with `zip` feature")]
pub zip: bool, pub zip: bool,
/// Skip validating the project for pack format compatibility. /// Skip validating the project for pack format compatibility.
#[arg(long)] #[arg(long)]