mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-11 15:38:48 +08:00
Add new argument --custom-yaml to support custom export as yaml format
This commit is contained in:
@@ -329,6 +329,10 @@ pub struct Arg {
|
||||
#[arg(short = 'W', long, global = true, value_name = "QUALITY", group = "webp_qualityg", value_parser = parse_webp_quality, default_value_t = 80)]
|
||||
/// WebP quality for output images, 0-100. 100 means best quality.
|
||||
pub webp_quality: u8,
|
||||
#[arg(long, global = true)]
|
||||
/// Try use YAML format instead of JSON when custom exporting.
|
||||
/// By default, this is based on output type. But can be overridden by this option.
|
||||
pub custom_yaml: Option<bool>,
|
||||
#[command(subcommand)]
|
||||
/// Command
|
||||
pub command: Command,
|
||||
|
||||
Reference in New Issue
Block a user