diff --git a/src/cli.rs b/src/cli.rs index 525547a..9a33acf 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -13,7 +13,7 @@ static VERSION: &str = formatcp!( ); #[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 { #[command(subcommand)] cmd: Command, diff --git a/src/subcommands/build.rs b/src/subcommands/build.rs index fadece8..c7d5ed9 100644 --- a/src/subcommands/build.rs +++ b/src/subcommands/build.rs @@ -37,7 +37,7 @@ pub struct BuildArgs { #[arg(short, long)] pub assets: Option, /// 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, /// Skip validating the project for pack format compatibility. #[arg(long)]