Add a new comand convert to convert between outputt script types

This commit is contained in:
2025-12-30 11:18:26 +08:00
parent 7670570a88
commit f58ffd290b
5 changed files with 496 additions and 1 deletions

View File

@@ -716,6 +716,17 @@ pub enum Command {
/// Output dependency file path. This file will contain a list of all files packed in the archive.
dep_file: Option<String>,
},
/// Convert output script to another format
Convert {
/// Input script format type
input_type: OutputScriptType,
/// Output script format type
output_type: OutputScriptType,
/// Input script file
input: String,
/// Output script file
output: Option<String>,
},
}
pub fn parse_args() -> Arg {