Add support to enable multi lang support for artemis pannomimisoft txt script

This commit is contained in:
2026-01-13 18:18:46 +08:00
parent 11a32f1578
commit 5fcf46005a
4 changed files with 39 additions and 2 deletions

View File

@@ -345,6 +345,11 @@ pub struct Arg {
/// If not specified, the first language will be used.
pub artemis_panmimisoft_txt_lang: Option<String>,
#[cfg(feature = "artemis-panmimisoft")]
#[arg(long, global = true, action = ArgAction::SetTrue, requires = "artemis_panmimisoft_txt_lang")]
/// Enable multiple language support for single language Artemis TXT (ぱんみみそふと) script.
/// --artemis-panmimisoft-txt-lang must be set when enabling this.
pub artemis_panmimisoft_txt_multi_lang: bool,
#[cfg(feature = "artemis-panmimisoft")]
#[arg(long, global = true)]
/// The path to the tag.ini file, which contains the tags to be ignored when finding names in Artemis TXT script (ぱんみみそふと).
pub artemis_panmimisoft_txt_tag_ini: Option<String>,