Add cond compile for some command line arguments

This commit is contained in:
2025-06-05 07:52:57 +08:00
parent d28a604e34
commit 8083990e94
3 changed files with 8 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ pub struct Arg {
)]
/// Archive code page
pub archive_code_page: Option<u32>,
#[cfg(feature = "circus")]
#[arg(long, value_enum, global = true)]
/// Circus Game
pub circus_mes_type: Option<CircusMesType>,
@@ -66,6 +67,7 @@ pub struct Arg {
#[arg(global = true, action = ArgAction::SetTrue, short, long)]
/// Print backtrace on error
pub backtrace: bool,
#[cfg(feature = "escude-arc")]
#[arg(long, action = ArgAction::SetTrue, global = true)]
/// Whether to use fake compression for Escude archive
pub escude_fake_compress: bool,