Add support to export image from archive.

Add an argument to allow detect sysgrp image
This commit is contained in:
2025-06-14 12:04:27 +08:00
parent 48c3051e0d
commit c1269bdd3c
5 changed files with 217 additions and 30 deletions

View File

@@ -93,6 +93,10 @@ pub struct Arg {
/// Disable appending new strings to the end of BGI scripts.
/// Disable may cause BGI scripts broken.
pub bgi_disable_append: bool,
#[cfg(all(feature = "bgi-arc", feature = "bgi-img"))]
#[arg(long, global = true)]
/// Detect all files in BGI archive as SysGrp Images. By default, only files which name is `sysgrp.arc` will enabled this.
pub bgi_is_sysgrp_arc: Option<bool>,
#[command(subcommand)]
/// Command
pub command: Command,