From 16bef0a5289586a1999c85a746aaea766f260774 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 14 Jul 2026 18:27:06 +0800 Subject: feat(style): make ParserStyle fields public --- mingling_picker/src/parselib/style.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mingling_picker/src/parselib/style.rs b/mingling_picker/src/parselib/style.rs index 770ef05..3ce12f7 100644 --- a/mingling_picker/src/parselib/style.rs +++ b/mingling_picker/src/parselib/style.rs @@ -5,25 +5,25 @@ use std::sync::atomic::{AtomicBool, Ordering}; #[derive(Clone, Copy, PartialEq, Eq)] pub struct ParserStyle<'a> { /// End-of-options marker (e.g., `--`) - end_of_options: &'a str, + pub end_of_options: &'a str, /// Prefix for long options (e.g., `--` or `/`) - long_prefix: &'a str, + pub long_prefix: &'a str, /// Prefix for short options (e.g., `-` or `/`) - short_prefix: &'a str, + pub short_prefix: &'a str, /// Prefix for combined short flags (e.g., `-abc`) - combine_prefix: &'a str, + pub combine_prefix: &'a str, /// Separator between name and value (e.g., `=` or `:`) - value_separator: char, + pub value_separator: char, /// Whether option names are case-sensitive - case_sensitive: bool, + pub case_sensitive: bool, /// Whether combining short flags is allowed (e.g., `-abc` for `-a -b -c`) - allow_combine: bool, + pub allow_combine: bool, } /// Unix-like style (e.g., `--verbose`, `-v`, `--name=value`) -- cgit