fix clap command name & add notice if zip feature is disabled
This commit is contained in:
parent
c041d51c59
commit
7d5e126267
|
@ -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,
|
||||
|
|
|
@ -37,7 +37,7 @@ pub struct BuildArgs {
|
|||
#[arg(short, long)]
|
||||
pub assets: Option<PathBuf>,
|
||||
/// 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)]
|
||||
|
|
Loading…
Reference in New Issue